There are several ways to get the current time

jfhuang (Zigzag)
1. You can try GetSystemTime() as follows:

SYSTEMTIME currentTime;
int second, minute;

second = currentTime.wSecond;
minute = currentTime.wMinute;

2. I don't know how you define the string ldfnm. You should define char ldfnm[30], or something like that, to allocate memory. Otherwise you may get an error.
Assertion is a debug method. The statement is like : assert(x==1). if x does not equal to 1, the program will raise an assertion failure. It can help you to debug the program. There are a lot of assertion statement in the C/C++ library to help you debug your programm.
2001-7-24 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: (C++)How to get object from vector one by one in a loop? thanks. After I erase an element from a list,where the pointer will point to?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论