16,472
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#define _AFXDLL
#include <afx.h>
using namespace std;
int main()
{
int iMinutes = 0, iSeconds = 0, iTotal = 0;
CTime time = CTime::GetCurrentTime();
iMinutes = time.GetMinute();
iSeconds = time.GetSecond();
iTotal = iMinutes * 60 + iSeconds;
cout << iTotal << endl;
getchar();
return 0;
}