Team LiB
Previous Section Next Section

6.2. Declaration Statements

6.2. 声明语句

Defining or declaring an object or a class is a statement. Definition statements are usually referred to as declaration statements although definition statement might be more accurate. We covered definitions and declarations of variables in Section 2.3 (p. 43). Class definitions were introduced in Section 2.8 (p. 63) and will be covered in more detail in Chapter 12.

在 C++ 中,对象或类的定义或声明也是语句。尽管定义语句这种说法也许更准确些,但定义语句经常被称为声明语句第 2.3 节介绍了变量的定义和声明。第 2.8 节介绍了类的定义,相关内容将在第十二章进一步探讨。


Team LiB
Previous Section Next Section