'using' 关键字是预处理器指令吗?

Is 'using' keyword a preprocesor directive?

using指令是预处理器指令吗?

如果没有:除了预处理器和using指令,C++中还有其他指令吗?

为什么您认为关键字是预处理器指令?它们是两种截然不同的东西。

为了清楚起见,预处理器指令总是以散列开头,并且必须至少占据一整行。关键字是 "word"(可能包含下划线)。所以他们没有共同点。

您的答案:

Is the directive using a preprocessor directive?

没有。它是一个指令但不是 预处理器 指令

Is it handled by the preprocessor or the compiler?

它由编译器处理,作为名称查找的 "directive"。

Also, what is a directive?

您可以放心地相信任何没有编译成实际可执行代码的都是指令。这是一个非常宽泛的问题,这里无法提供完整的答案。

您可能想要 look up "directive" in a dictionary

Is 'using' a directive or a keyword?

两者都有。

Am I right in understanding that All directives are not 'pre-processor directive' but all preprocessor directives are directives?

可能是对的。有道理。