Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
Please use the proper tags, like "C++" A & B It depends on what kind of input you want. If you want to store the space with the string you are inputting, no it will not work, but if you are inputting into several variables, the space will work for that: cin >> varA; If you input "hello world", varA will become "hello" cin >> varA >> varB; If you input "hello world", varA will be "hello" and varB will be "world"
25th Aug 2019, 2:40 PM
Zeke Williams
Zeke Williams - avatar