Method for obtaining time in C ++

xiaoxiao2021-03-06  76

The system time is required in C , and the acquisition time can be called directly with the function in C.

void cyttydlg :: onbutton7 ()

{

// Todo: Add Your Control Notification Handler Code Here

INT S = TIME ((Time_t *) NULL);

Cstring aa;

AA.Format ("% D", s);

AfxMessageBox (AA);

}

There are also many cases that can directly call the C language function, and try not to try.

转载请注明原文地址:https://www.9cbs.com/read-94093.html

New Post(0)