三国志2霸王大陆加强版:vc++编程 设计一个时钟类Clock并编写主程序,使其能在屏幕上以时分秒的形式动态显

来源:百度文库 编辑:神马品牌网 时间:2024/05/07 18:38:42
设计一个时钟类Clock并编写主程序,使其能在屏幕上以时分秒的形式动态显示时间。

用vc++
谢谢

得到系统时间日期(使用GetLocalTime)
SYSTEMTIME st;
CString strDate,strTime;GetLocalTime(&st);
strDate.Format("%4d-%2d-%2d",st.wYear,st.wMonth,st.wDay);
strTime.Format("%2d:%2d:%2d",st.wHour,st.wMinute,st.wSecond);
其他的自己搞定把,不好意思了