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 :: minheap cpp stl 
Cpp :: how to increase array memory in c++ 
Cpp :: read a whole line from the input 
Cpp :: c++ call by value 
Cpp :: bit++ codeforces in c++ 
Cpp :: Abstract factory C++ code 
Cpp :: c++ insert hashmap 
Cpp :: c++ catch Unhandled exception 
Cpp :: maximum subarray leetcode c++ 
Cpp :: async multi thread 
Cpp :: how to find size of int in c++ 
Cpp :: cpp undefined reference to function 
Cpp :: C++ vector structure 
Cpp :: the difference between i++ and ++i 
Cpp :: merge sort in descending order c++ 
Cpp :: insertion overloading in c++ 
Cpp :: pointer to pointer c++ 
Cpp :: c++ structs 
Cpp :: c++ string example 
Cpp :: C++ programming code to remove all characters from string except alphabets 
Cpp :: c++ read entire file into a variable 
Cpp :: how to bath without water 
Cpp :: code runner c++ syntax error 
Cpp :: vector int initialize with increasing numbers 
Cpp :: reverse the number codechef solution in c++ 
Cpp :: sfml thread multi argument function 
Cpp :: Get the absolute path of a boost filePath as a string 
Cpp :: overload operator object function call 
Cpp :: library management system project in c++ using array 
Cpp :: sento freddo a un dente 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =