随笔分类 - 编程技术
摘要:Linux 的管道符 |的使用 例如:echo hello | test Input.cpp #include <iostream> using namespace std; int main() { string Input; while (getline(cin, Input)) cout <<
阅读全文
摘要:多线程基础[1][2] 线程 std::thread 注意事项 线程在 thread 对象初始化后立即执行(等待任何OS调度延迟) 在 thread 对象销毁前,需要先使用 join 或 detach,否则会被调用 std::terminate join 与 detach 的区别: join:调用
阅读全文

浙公网安备 33010602011771号