|
|
|
|
#include <iostream> #include <fstream> #include <vector> #include <sstream> #include <iterator> int main() { std::string original = " num_lines logfile.txt"; std::istringstream inp(original); std::istream_iterator<std::string> it(inp); std::string u(*it++); std::string v(*it++); std::cout << u << '\n' << v; } |
|
|