|
|
вернуться в форумRead input until the end in C/C++ Reading the entire input char by char can be done quickly this way: while ((input = (char)getchar())) { if (input == EOF) { break; } Re: Read input until the end in C/C++ The canonical way is: while ((input = std::getc()) != EOF) { ... } |
|
|