原创 C++中的using namespace std

using namespace std就是使用一個名字爲std的namespace。這樣命名空間std內定義的所有標識符都有效(曝光)。 看下面代碼   #include<iostream> using namespace std; in