我无法在我的程序中使用localtime_s: #define __STDC_WANT_LIB_EXT1__ 1// error: there are no arguments to ‘localtime_s’ that depend on a template parameter,
// so a declaration of ‘loca
我正在尝试做一个借书系统,它可以告诉用户他们必须归还书的日期。因为我必须用这些数据来检查借入时间是否超过限额。我尝试使用两个tm结构。struct tm *Newdate;Newdate->tm_mday += 7;printf("Current local time and date: %s", asctime(Olddate));
printf("Current new time and date: %s", asct