time_t nowTime=time(0); struct tm* nowTimeStruct=localtime(&nowTime); output<<"系统当前时间:"<<1900+nowTimeStruct->tm_year<<"."<所需包含的头文件:<time.h>tm_mon<<"."<< nowTimeStruct->tm_mday<<" "< tm_hour<<":"< tm_min<<":"< tm_sec<
本文共 341 字,大约阅读时间需要 1 分钟。
time_t nowTime=time(0); struct tm* nowTimeStruct=localtime(&nowTime); output<<"系统当前时间:"<<1900+nowTimeStruct->tm_year<<"."<所需包含的头文件:<time.h>tm_mon<<"."<< nowTimeStruct->tm_mday<<" "< tm_hour<<":"< tm_min<<":"< tm_sec<
转载于:https://www.cnblogs.com/zclzqbx/p/4687131.html