输出系统日期和时间
void Data_(){
struct tm *sysTime;
time_t nowTime;
time(&nowTime);
sysTime=localtime(&nowTime);
printf("系统日期:%d-%d-%d \n",1900+sysTime->tm_year,symTime->tm_mon,sysTime->tm_mday);
}
void Time_()
{
struct tm *sysTime;
time_t nowTime;
time(&nowTime);
sysTime=localtime(&nowTime);
printf("系统日期:%d:%d:%d \n",sysTime->tm_hour,symTime->tm_min,sysTime->tm_sec);
}
error: 'symTime' undeclared (first use in this function)|
怎么会没有声明变量