fork download
  1. /*
  2.  * PROGRAMMED BY : ANDRES GUZMAN-NIETO
  3.  * CLASS : CSC5
  4.  * SECTION : Mon - Wed - 2:20p-5:30p
  5.  * ASSIGNMENT #1 : Basic Input / Output
  6.  */
  7. #include <iostream>
  8. #include <iomanip>
  9. #include <string>
  10. using namespace std;
  11. int main ()
  12. {
  13. string name;
  14. //
  15. // Implement input & fix output spacing after reading & watching chapter 3
  16. cout << "What is your name: " << name << endl;
  17. cin >> name;
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
What is your name: