MFC 显示系统的时间的问题

来源:互联网 发布:淘宝买会员是真的吗 编辑:程序博客网 时间:2024/06/06 20:23

  CTime t =CTime::GetCurrentTime();
  CString strTime;
  strTime.Format(_T("Deal :d:d:d\r\n"), t.GetHour(), t.GetMinute(), t.GetSecond());
  OutputDebugString(strTime);
  ::Sleep(2000);