聘我网

新概念招聘3.0

using如何使用?

vote up0vote downstar

比如:

using ::size_t; using ::fpos_t; using ::FILE;

能否简单讲解下?

 

1 个答复

vote up0vote downcheck

有两种使用方式:

  1. using declarationusing std::swap; 使得swap在当前namespace可用。

  2. using directiveusing namespace std; 使得不带::的变量名查询范围包括std

链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.