|
|
вернуться в форумHow to define when the program should stop working? I tried to leave main cycle when the input is null-string, but I got "Output Limit Exceeded". More over, the problem says that there may be some line breaks. So what the point? Re: How to define when the program should stop working? Use feof(stdin) or cin.eof() I use either of 2 ways (+) 1. while (scanf(..) != EOF) 2. while (cin.peek() != EOF) |
|
|