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 +} 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 +}