From 0ea1ebc1267f5683407717c789475f1f33343a86 Mon Sep 17 00:00:00 2001 From: VYOM GUPTA <55016130+vyom104@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:32:26 +0530 Subject: [PATCH 1/2] Update name.cpp --- Chapter01/name.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Chapter01/name.cpp b/Chapter01/name.cpp index 8e86211..0b1012a 100644 --- a/Chapter01/name.cpp +++ b/Chapter01/name.cpp @@ -5,6 +5,8 @@ void PrintName() { std::string name; std::cout << "Your first name?: "; + // Taking Input In name std::cin >> name; + // Printing name std::cout << name; -} \ No newline at end of file +} From 7e1bd74bf5532a1f41b846165206ac7e3a274dd6 Mon Sep 17 00:00:00 2001 From: VYOM GUPTA <55016130+vyom104@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:33:31 +0530 Subject: [PATCH 2/2] Update time.cpp --- Chapter01/time.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Chapter01/time.cpp b/Chapter01/time.cpp index bae7123..5aa616d 100644 --- a/Chapter01/time.cpp +++ b/Chapter01/time.cpp @@ -4,5 +4,6 @@ void PrintTime() { std::time_t now = std::time(nullptr); + // Printing Time And Date std::cout << ", the time and date are " << std::asctime(gmtime(&now)) << std::endl; -} \ No newline at end of file +}