input - How to read until EOF from cin in C++ - Stack Overflow

input - How to read until EOF from cin in C++ - Stack Overflow

瀏覽:883
日期:2025-06-13
Sad side note: I decided to use C++ IO to be consistent with boost based code. From answers to this question I chose while (std::getline(std::cin, line)). Using g++ version 4.5.3 (-O3) in cygwin (mintty) i got 2 MB/s throughput. Microsoft Visual C++ 2010 ...看更多