VC++ 2个时间相减得到秒数,TimeStart TimeEnd 格式为120615代表12点06分15秒 怎么改下面的程序呢
GetDlgItemText(IDC_EDIT_TIME_START,TimeStart);GetDlgItemText(IDC_EDIT_TIME_END,TimeEn...
GetDlgItemText(IDC_EDIT_TIME_START,TimeStart);
GetDlgItemText(IDC_EDIT_TIME_END,TimeEnd);
CTime m_Time1(TimeStart );
CTime m_Time2(TimeEnd );
UINT t1 = m_Time1.GetTime();
UINT t2 = m_Time2.GetTime();
UINT mDelta = t2 - t1; 展开
GetDlgItemText(IDC_EDIT_TIME_END,TimeEnd);
CTime m_Time1(TimeStart );
CTime m_Time2(TimeEnd );
UINT t1 = m_Time1.GetTime();
UINT t2 = m_Time2.GetTime();
UINT mDelta = t2 - t1; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询