Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include <ostream>
- int main() {
- std::string s;
- std::cout << "Enter a line: ";
- std::getline(std::cin, s);
- std::cout << "You typed this: " << s << std::endl;
- return 0;
- }
- cin >> myVar;
- cin >> myVar;
- std::getline(std::cin, myString);
- std::getline(std::cin, myString);
Add Comment
Please, Sign In to add comment