怎么获取系统时间,形式如“2002年10月20日 20时4分”的字符串?在线等待 ??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SYSTEMTIME systime; GetLocalTime(&systime); CString str; str.Format("本机时间:%d.%2d.%2d %2d:%2d", systime.wYear, systime.wMonth, systime.wDay,systime.wHour,systime.wMinute); CTime t = CTime::GetCurrentTime();CString str;str.Format("%d年%d月%d日 %d时%d分",t.GetYear(),t.GetMonth(),t.GetDay(),t.GetHour(),t.GetMinute());MessageBox(str); 急!关于XMPP使用的问题? 关于OnPaint函数内显示内容的打印问题 BCG的MSDN问题 检查哪个注册表键指可以判断组件是否组测 vc资源和classwizard问题 最近做了个车牌识别软件,参加学校的学术科技大赛得了个优秀,太郁闷了! 还是链接错误 VC的错误, 大家有没有遇到啊? 请问我的图标在列表控件中不能显示,为什么? http://www.csdn.net/expert/topic/940/940818.xml?temp=.5225794 强烈建议大家去看看 奉劝大家一句:千万不要到台湾人的公司,特别是小公司去! 响应CListCtrl鼠标双击后怎样进行处理啊???
GetLocalTime(&systime);
CString str;
str.Format("本机时间:%d.%2d.%2d %2d:%2d", systime.wYear, systime.wMonth, systime.wDay,systime.wHour,systime.wMinute);
CString str;
str.Format("%d年%d月%d日 %d时%d分",t.GetYear(),t.GetMonth(),t.GetDay(),t.GetHour(),t.GetMinute());
MessageBox(str);