摘要: 推荐 filesystem ,特别好用,除了新建、删除、复制、移动文件夹,还支持磁盘空间检测,权限检测,路径处理。 一、使用系统库 // 检测文件,检测文件夹 /* windows * 头文件:io.h * 函数:int access(const char* _Filename, int _Acce 阅读全文
posted @ 2024-04-12 17:48 十一的杂文录 阅读(32) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <thread> #include <chrono> using namespace std; int main() { cout << "C++11" << endl; std::this_thread::sleep_for(std::ch 阅读全文
posted @ 2024-04-12 17:00 十一的杂文录 阅读(17) 评论(0) 推荐(0) 编辑
摘要: C++11 标准 #include <iostream> #include <random> using namespace std; int main() { cout << "C++11" << endl; default_random_engine random(time(nullptr)); 阅读全文
posted @ 2024-04-12 16:56 十一的杂文录 阅读(2) 评论(0) 推荐(0) 编辑