fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string line;
  7. std::getline(std::cin, line);
  8. std::cout << '"' << line << '"' << std::endl;
  9. }
  10.  
Success #stdin #stdout 0s 3476KB
stdin
a b c
d e f
stdout
"a b c"