Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*****************************************************************************
- //A slightly more advanced and personal "Hello World" program
- //*****************************************************************************
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string name;
- cout << endl << "Hi there. What's your name?" << endl;
- getline(cin, name); //get a line of characters for the name variable
- cout << endl << "Hello World and more specifically, "<< name
- << "!" << endl << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement