From 2c9056a23e1a55fd21a8e314c903d9325bffd62e Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sat, 6 Sep 2025 09:37:14 +0200 Subject: Move CPP code here Signed-off-by: Carlos Maiolino --- CPP/cpp_book/chap1/exe.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CPP/cpp_book/chap1/exe.cpp (limited to 'CPP/cpp_book/chap1/exe.cpp') 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 +#include + +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; +} -- cgit v1.2.3