MFC 时间

CString str; //获取系统时间   


CTime tm; tm = CTime::GetCurrentTime();

str = tm.Format("现在时间是%Y年%m月%d日 %X");


MessageBox(str, NULL, MB_OK);

猜你喜欢

转载自blog.csdn.net/gasonchen/article/details/78111187
MFC
今日推荐