#include <atltime.h>
int _tmain(int argc, _TCHAR* argv[])
{
CTime t = CTime::GetCurrentTime();
long lDate = t.GetYear()*10000+t.GetMonth()*100+t.GetDay();
printf("%d\n",lDate); //如:20110701
return 0;
}
C++ 输出日期
最新推荐文章于 2023-05-23 06:46:37 发布