cin >> variable;
// sample 1
int x;
cout << "x: ";
cin >> x;
cout << x << endl;
//sample 2
int num;
for (int i = 0; i < 10; i++){
cout << "Give a number: ";
cin >> num;
}
Code Example |
---|
:: |
:: |
:: |
Cpp :: |
:: modular exponentiation algorithm c++ |
Cpp :: |
:: std::map get all keys |
Cpp :: |
Cpp :: |
Cpp :: ifstream |
Cpp :: #define in cpp |
:: |
:: vector iterator in c++ |
Cpp :: |
:: abs c++ |
Cpp :: |
:: |
:: c++ allocate dynamic with initial values |
:: |
Cpp :: |
:: |
:: |
:: |
:: |
Cpp :: |
Cpp :: move semantics in c++ |
:: |
Cpp :: |
Cpp :: |
:: C++ singleton prevent copy |