大家帮看看这段C语言代码为什么在VC6.0编译没有错,运行就有问题了?
大家帮看看这段C语言代码为什么在VC6.0编译没有错,运行就有问题了?
日期:2011-05-16 12:39:35 人气:1
#include
#include
#include
int main( )
{
int year, month, day, hour, min, sec;
time_t nowtime;
struct tm *timeinfo;
while(1)
{ system( "cls.exe ");
time( &nowtime );
timeinfo = localtime( &nowtime );
year = timeinfo->tm_ye