Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string fullname;
- cout << "Please enter your full name: ";
- getline(cin, fullname, '\n');
- cout << "Have a nice day " << fullname << endl;
- system("pause");
- }
- Result:
- Please enter your full name: Ivan Widyan
- Have a nice day Ivan Widyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement