C4996 ‘localtime‘: This function or variable may be unsafe. Consider using localtime_s instead.
Question:C++使用localtime: time_t timep; time(&timep); char tmp[256]; strftime(tmp, sizeof(tmp), "%Y-%m-%d %H:%M:%S", localtime(&timep)); Console::WriteLine(tmp);提示:警告14warningC4996:'localtime':Thisfunctionorvariab...
原创
2020-07-05 11:06:00 ·
4058 阅读 ·
0 评论