我有这个简单的代码:
#include <stdio.h>
#include <time.h>
int main(){
enum Days { asd=0,Lun,Mar,Mer,Gio,Ven,Sab,Dom };
Days TheDay;
time_t ltime;
struct tm *Tm;
ltime=time(NULL);
Tm=localtime(<ime);
int j = Tm->tm_wday;
TheDay = Days(j);
printf("[%d] %d/%d/%d, %d:%d:%d\n",
TheDay, /* Mon - Sun */
Tm->tm_mday,
Tm->tm_mon,
Tm->tm_year+1900,
Tm->tm_hour,
Tm->tm_min,
Tm->tm_sec);
}
我不明白为什么会出现此错误:
try.c:6:5: 错误:未知类型名称“天”</p>