void getTime()
{
time_t currentTime;
time(¤tTime);
std::cout << "The current time is " << ctime(¤tTime) << std::endl;
}
This function shows this:
Sat May 08, 14:57:22 2004
How can I make it Sat May 08 14:57:22 (but make it 2:57:22), and no year?
Trouble with CTIME
Yo.
lol, and your telling me you wrote this???
Don''t steal from others and claim it as your own, you should first understand c++,ahahhaha you made my day.
Don''t steal from others and claim it as your own, you should first understand c++,ahahhaha you made my day.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement