随笔分类 -  编程技术

摘要:Linux 的管道符 |的使用 例如:echo hello | test Input.cpp #include <iostream> using namespace std; int main() { string Input; while (getline(cin, Input)) cout << 阅读全文
posted @ 2023-10-25 01:31 我的名字好长啊 阅读(35) 评论(0) 推荐(0)
摘要:多线程基础[1][2] 线程 std::thread 注意事项 线程在 thread 对象初始化后立即执行(等待任何OS调度延迟) 在 thread 对象销毁前,需要先使用 join 或 detach,否则会被调用 std::terminate join 与 detach 的区别: join:调用 阅读全文
posted @ 2023-10-24 03:03 我的名字好长啊 阅读(40) 评论(0) 推荐(0)