摘要: 设定线程可执行时间 #include <iostream> using namespace std; #include <boost/thread.hpp> boost::thread t_time; void wait(int seconds) { boost::this_thread::slee 阅读全文
posted @ 2021-01-14 18:58 采男孩的小蘑菇 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 注:假设需要屏蔽的warning号为8888 第一种方法, 在代码中加入#prama warning(disable:8888) 第二种方法, VS编译器中设置, 以VS2005为例, 打开项目属性-> c/c++ -> Advanced -> Disable Specific Warnings 输 阅读全文
posted @ 2021-01-14 14:05 采男孩的小蘑菇 阅读(809) 评论(0) 推荐(0) 编辑