summaryrefslogtreecommitdiff
path: root/CPP/cpp_book/chap1/1_1.cpp~
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/cpp_book/chap1/1_1.cpp~')
-rw-r--r--CPP/cpp_book/chap1/1_1.cpp~15
1 files changed, 15 insertions, 0 deletions
diff --git a/CPP/cpp_book/chap1/1_1.cpp~ b/CPP/cpp_book/chap1/1_1.cpp~
new file mode 100644
index 0000000..c7cc953
--- /dev/null
+++ b/CPP/cpp_book/chap1/1_1.cpp~
@@ -0,0 +1,15 @@
+#include <iostream>
+#include <string>
+
+int
+main()
+{
+ std::cout << "Please enter your first name: ";
+
+ std::string name;
+ std::in >> name;
+
+ std::cout << "Hello, " << name << ". Welcome!" << std::endl;
+
+ return 0;
+}