Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ User Input

int x; 
cout << "Type a number: "; // Type a number and press enter
cin >> x; // Get user input from the keyboard
cout << "Your number is: " << x; // Display the input value
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #User #Input
ADD COMMENT
Topic
Name
6+8 =