摘要: c++ 11中,创建线程是对线程类thread 的对象构造。参数是线程入口函数指针,函数参数。 void dosomething(int i,string const& s ){} char buff[] = "Hello"; //先构造myObj,再构造 string s thread myObj 阅读全文
posted @ 2020-07-27 13:40 水水$88 阅读(148) 评论(0) 推荐(0)