test.cpp 249 B

1234567891011121314151617181920
  1. #include <iostream>
  2. #include <sstream>
  3. using namespace std;
  4. // ÖÐÎÄ×¢ÊÍ
  5. int main()
  6. {
  7. string cmd;
  8. cout << "test line end format!" << endl;
  9. std::cout << "test" << std::endl;
  10. while (cin >> cmd)
  11. {
  12. if (cmd == "quit")
  13. break;
  14. }
  15. return 0;
  16. }