> 其他 >
C++ 如何从系统获取当前时间,要年月日,不要小时,分钟,秒的.
人气:214 ℃ 时间:2020-05-20 23:43:55
解答
#include
#include
#include
using namespace std;
int getSystemTime()
{
time_t timer;
time(&timer);
tm* t_tm = localtime(&timer);

cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版