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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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