说明: #include #include #include int main( ) { FILE *fp; fp = fopen("time.xls","a"); if(fp == NULL) { printf("can not open file.\n"); exit(0); } int year, month, day,hour,min,sec; char ch; time_t nowtime; struct tm *timeinfo; time( &nowtime ); timeinfo =
<tangyahui1985> 上传 | 大小:1kb