SYSTEMTIME sys;
GetLocalTime( &sys );
char str_time_name[MAX_PATH];
sprintf( str_time_name,"%d%d%d%d%d%d.jpg" ,sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute,sys.wSecond);
获取当前时间做为当前文件名
最新推荐文章于 2023-02-15 13:49:48 发布
SYSTEMTIME sys;
GetLocalTime( &sys );
char str_time_name[MAX_PATH];
sprintf( str_time_name,"%d%d%d%d%d%d.jpg" ,sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute,sys.wSecond);