0
In cpp. .when coding ..how do I allow a person to type in an input. . Like if I want someone to type in their age ..??
Some smart ass question here .. don't ignore ..need help af
2 Respuestas
+ 2
it also helps a lot if you first write a message with cout
for example:
int age;
cout << "Please enter your age:\n";
cin >> age;
Now the age of the user is stored in the variable "age".
+ 1
int age;
cin >> age;
cin means "Console input".