Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Chapter01/name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
3 changes: 2 additions & 1 deletion Chapter01/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}