C++ - Using

来源:互联网 发布:kad算法 编辑:程序博客网 时间:2024/06/15 01:01

1. full-qualified name

 

std::cout << "Hello World!" << std::endl;

 

 

2. "using" keyword

 

using std::cout;

using std::endl;

 

cout << "Hello World!" << endl;

 

 

3. "using namespace" keyword

 

using namespace std;

 

cout << "Hello World!" << endl;

 

原创粉丝点击