Guest User

Untitled

a guest
Jun 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include <ostream>
  4.  
  5. int main() {
  6. std::string s;
  7. std::cout << "Enter a line: ";
  8. std::getline(std::cin, s);
  9. std::cout << "You typed this: " << s << std::endl;
  10. return 0;
  11. }
  12.  
  13. cin >> myVar;
  14.  
  15. cin >> myVar;
  16.  
  17. std::getline(std::cin, myString);
  18. std::getline(std::cin, myString);
Add Comment
Please, Sign In to add comment