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 ..?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

17th Dec 2016, 3:26 PM
Ismail Jiwa
Ismail Jiwa - avatar
2 Answers
+ 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".
17th Dec 2016, 5:11 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 1
int age; cin >> age; cin means "Console input".
17th Dec 2016, 3:28 PM
Sheemin
Sheemin - avatar