fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. char str[100];
  7.  
  8. cout << "Enter a string: ";
  9. cin >> str;
  10. cout << "You entered: " << str << endl;
  11.  
  12. cout << "\nEnter another string: ";
  13. cin >> str;
  14. cout << "You entered: "<<str<<endl;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
Enter a string: You entered: ����O

Enter another string: You entered: ����O