fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. std::string name ;
  6. std::cout << "Enter bill name\n" ;
  7. std::getline(std::cin, name) ;
  8.  
  9. std::cout << "Bill name is \"" << name << "\"\n" ;
  10. }
Success #stdin #stdout 0s 3432KB
stdin
Capital One
stdout
Enter bill name
Bill name is "Capital One"