Tags:C++ Questions | 363 views
im using:
char Time::currentTime()
{
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
return asctime (timeinfo);
}
and in the other class im usin to write the time:
list_of_orders <<time->currentTime()<<endl;
is this correct
RSS feed for comments on this post
Leave a reply