0

if i want to scan string c++ what should I do?? suppose hello world

14th Jul 2016, 6:42 PM
krishna desai
3 Answers
+ 1
If the string contains spaces, use getline(cin, stringName)
14th Jul 2016, 8:53 PM
this->getName()
0
If you want to read strind from console input then try to use command "cin >> str_var"
14th Jul 2016, 6:56 PM
Konstantin Purtov
Konstantin Purtov - avatar
0
cin>>" ";
15th Jul 2016, 10:44 AM
Avinash Krishna
Avinash Krishna - avatar