|
|
back to boardHow can the program recognize when there aren´t more inputs ? Posted by Albert 18 Jan 2020 00:38 I investigated on internet, but most of the answers were putting a type of character that breaks the cycle, but in the input example there´s no character and it´s not enough with a "while(cin >> n)" pls help Re: How can the program recognize when there aren´t more inputs ? Re: How can the program recognize when there aren´t more inputs ? Posted by Q 26 Feb 2022 22:10 if copypast test text, it read a blank string as EOF by some reason Edited by author 26.02.2022 22:11 |
|
|