fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.  
  6. std::string text;
  7. std::getline(std::cin, text, '#');
  8.  
  9. std::cout << text << std::endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 2988KB
stdin
This is a
test to see if
newlines can be read#
Nothing after this
point should be shown
stdout
This is a
test to see if
newlines can be read