Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ add input in

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;
}
Comment

PREVIOUS NEXT
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 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =