| 1 | #include <iostream> |
| 2 | #include <string> |
| 3 | using namespace std; |
| 4 | |
| 5 | int main() { |
| 6 | string name; |
| 7 | cout << "\nWhat is your name (first and last)? "; |
| 8 | getline(cin, name); |
| 9 | cout << "\nHello, " << name << endl; |
| 10 | return 0; |
| 11 | } |
Last active 4 months ago
| 1 | #include <iostream> |
| 2 | #include <string> |
| 3 | using namespace std; |
| 4 | |
| 5 | int main() { |
| 6 | string name; |
| 7 | cout << "\nWhat is your name (first and last)? "; |
| 8 | getline(cin, name); |
| 9 | cout << "\nHello, " << name << endl; |
| 10 | return 0; |
| 11 | } |