Cout current time, display exact time, HH MM SS ms
Current Time in C++, Thanks...?
#include %26lt;stdio.h%26gt;
#include %26lt;time.h%26gt;
void main( )
{
char dateStr [9];
char timeStr [9];
_strdate( dateStr);
printf( "The current date is %s \n", dateStr);
_strtime( timeStr );
printf( "The current time is %s \n", timeStr);
}
hope this helps...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment