summaryrefslogtreecommitdiff
path: root/CPP/cpp_book/chap1/exe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/cpp_book/chap1/exe.cpp')
-rw-r--r--CPP/cpp_book/chap1/exe.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/CPP/cpp_book/chap1/exe.cpp b/CPP/cpp_book/chap1/exe.cpp
new file mode 100644
index 0000000..537d955
--- /dev/null
+++ b/CPP/cpp_book/chap1/exe.cpp
@@ -0,0 +1,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;
+}