2025年6月28日

c++ 字符串

摘要: #include<iostream> #include<cstring> using namespace std; void strarr(); void strstring(); int main(){ strarr(); return 0; } void strstring(){ string 阅读全文

posted @ 2025-06-28 20:53 running-fly 阅读(6) 评论(0) 推荐(0)

c++ 多线程编程

摘要: 一. 使用函数对象 #include <iostream> #include <thread> class PrintTask { public: void operator()(int count) const { for (int i = 0; i < count; ++i) { std::co 阅读全文

posted @ 2025-06-28 12:28 running-fly 阅读(5) 评论(0) 推荐(0)

导航