Hi all ... i was just wondering is there is a function that could be used in conjunction with a TM structure to get the system date and time? I am trying to make a program expire by using the below code in the constructor of a class. However i see no function that can fill this structure.
Im using MSVC++ 6.0 ... thanks for any helpCode:struct tm today; //getdate(&today); /* need a getdate function here */ if(today.tm_year > 1900) { if(today.tm_mon > 6) { cout << "Program Error ... Aborting!"; exit(1); } }![]()



LinkBack URL
About LinkBacks




