您的位置:首页 > 其它

CTime类的头文件以及输出当前时间

2017-05-24 11:07 113 查看
废话不多说直接上代码!
      
#include<iostream>
#include<atltime.h>
using namespace std;
int main()
{
CTime time = CTime::GetCurrentTime();
CString date = time.Format(_T("%Y-%m-%d %X"));
wcout << date.GetString() << endl;
system("pause");

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  CTime