tt_mc

导航

2010年3月1日 #

VC获取系统时间、程序运行时间

摘要: 1.使用CTime类CString str;//获取系统时间CTime tm;tm=CTime::GetCurrentTime();str=tm.Format("现在时间是%Y年%m月%d日 %X");MessageBox(str,NULL,MB_OK);2: 得到系统时间日期(使用GetLocalTime)SYSTEMTIME st;CString strDate,strTime;GetLoca... 阅读全文

posted @ 2010-03-01 00:27 tt_mc 阅读(355) 评论(0) 推荐(0) 编辑