天天看点

命名空间(namespace)std

使用std的三种方式:

1、直接使用指定标识符。

例如:std::ostream

2、使用using declaration。

例如:using std::endl;

3、使用 using derective。

例如:using namespace std;

继续阅读