What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-21 00:01:17
C++ Book an appointment 2. Change an appointment 3. Cancel an appointment 4. View appointment by last name 5. View all appointment
using namespace std; #include <iostream> #include <conio.h> #include <fstream> #include <iomanip> #include <string> #include <stdlib.h> const unsigned short numComponents = 10; unsigned short prices[numComponents]; ... Add solution -
C++ 2021-11-20 13:50:28
how to output a variable in c++
// i/o example #include <iostream> using namespace std; int main () { int i; cout << "Please enter an integer value: "; cin >> i; cout << "The value you entered is " << i; cout << " ... Add solution -
C++ 2021-11-20 13:01:29
delete index from array c++
const int SIZE = 9; int arr[SIZE]; cout << "Enter numbers: \n"; for (int i = 0; i < SIZE; i++) cin >> arr[i]; for (int i = 0; i < SIZE; i++) cout << arr[i] << "\t"; cout << endl; cout &l... Add solution -
C++ 2021-11-20 11:08:17
get nth fibonacci c++
#include <bits/stdc++.h> using namespace std; #define ll long long; const ll mod =1e9+7; unordered_map <ll,ll> f; ll fib(ll n) { if(n < 2) return 1; if (f.find(n) != f.end()) return f[n]; f[n] = (fib((n+1)/2)*fib(n/2) + fib((n-1)/2)*... Add solution -
C++ 2021-11-20 07:13:08
c++ guess my number
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int num, guess, tries = 0; srand(time(0)); //seed random number generator num = rand() % 100 + 1; // random number between 1 and 100 cout <... Add solution -
C++ 2021-11-19 17:27:22
variable sized array
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> //using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; ... Add solution