std里所有的事物 包括cin cout 都被封装于 namespace std 内 要使用cout 除了要调用<iostream.h> 还 必须使用namespace #include <iostream>using namespace std;int main(){ cout << "Hello World" <<endl;}