std::cout << "修改时间: " << timeChar << std::endl; localtime_s(&tmStruct, &stat_buffer.st_atime); strftime(timeChar, sizeof(timeChar), "%Y-%m-%d %H:%M:%S", &tmStruct); std::cout << "访问时间: " << timeChar << std::endl; std::cout << "文件大小: " << stat_buff...
printf("请输入新的上一次访问的时间 :"); gets(LastAccessTime); //scanf("%s", LastAccessTime); printf("请输入新的最近一次修改的时间 :"); gets(LastWriteTime); //scanf("%s", LastWriteTime); // 定义FILETIME变量 用于存储设置时间的变量 FILETIME ft, LocalFileTime1, LocalFileTime2, LocalFileTim...