#include <iostream> #include <sstream> using namespace std; int main() { string cmd; cout << "test line end format!" << endl; while (cin >> cmd) { if (cmd == "quit") break; } return 0; }