fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. cout << "My name is Martin. What's yours?" << endl;
  8. string name;
  9. cin >> name; //It seems to loop around here
  10. cout << "Ah, so you are" << name << "." << endl; //It doesn't print this message
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 16064KB
stdin
test
stdout
My name is Martin. What's yours?
Ah, so you aretest.