标签:read cin 命名冲突 cpp pac join() div 结束 头文件
#include "iostream"
//#include "thread"
//头文件一般不加入,复制到别的文件,导致命名冲突
//总增加
//using namespace std;
//每个名字独立的加入using引用
using std::cin;
using std::cout;
//using std::thread;
void foo(){}
void bar(int x){}
int main(){
// thread first(foo);
//thread second(bar,0);
cout << " 主函数开始.../n ";
// first.join();
// second.join();
cout << "foo和bar结束";
return 0;
}
标签:read cin 命名冲突 cpp pac join() div 结束 头文件
原文地址:http://www.cnblogs.com/dongvdong/p/7658824.html