1// strings and NTCS:
2#include <iostream>
3#include <string>
4using namespace std;
5
6int main ()
7{
8 char question1[] = "What is your name? ";
9 string question2 = "Where do you live? ";
10 char answer1 [80];
11 string answer2;
12 cout << question1;
13 cin >> answer1;
14 cout << question2;
15 cin >> answer2;
16 cout << "Hello, " << answer1;
17 cout << " from " << answer2 << "!\n";
18 return 0;
19}