summaryrefslogtreecommitdiff
path: root/CPP/cpp_book/chap1/exe.cpp
blob: 537d9559914820ed4bd95ebab64c4d3fc96cd48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <string>

int main(void) {

	std::cout << "Whats us your name? ";
	std::string name;

	std::cin >> name;

	std::cout << "Hello, " << name
			      << std::endl
			      << "And what is yours? ";

	std::cin >> name;

	std::cout << "Hello, "	<< name
				<< "; nice to meet you too!"
				<< std::endl;

    
	return 0;
}