- 2

Hi !! Why there are three statement of loop in C++ !?why is not one !!

And what does the benefit of the cin in C++ if it stop of input if the user enter a space !!!

13th Dec 2020, 6:28 PM
Mohammed Ba tis
Mohammed Ba tis - avatar
2 ответов
+ 4
cin is used for taking input without gap.If you want to get input with gap then have a look at it: https://www.includehelp.com/cpp-tutorial/how-to-read-a-string-with-spaces-in-cpp.aspx
13th Dec 2020, 6:40 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 2
please your code and link on your code
13th Dec 2020, 6:31 PM
Sergey
Sergey - avatar