C + + Partial terminology (Terms)

Source: Internet
Author: User

Please correct me if there is any inappropriate translation from MSDN.

statement (Declaration): The declaration introduces a name and its type into the program, and does not define a related object or function. However, many declarations are used as definitions. definitions (definition): The definition provides information that allows the compiler to allocate memory and generate function code for an object. life cycle (Lifetime): The life cycle of an object is the period in which an object exists, including creation and destruction. Contact (connection, linkage): A name can have an external connection, an internal connection, or no connection. In a program (a series of translation units), only names with external connections represent the same object or function. names (name): A name represents an object, a function, a series of overloaded functions, an enumerator, a type, a class member, a template, a value, or a label. C + + uses the name to refer to the language elements associated with it. The name can be a type name or identifier.(the name is limited by space time) objects (object): An object is an instance of a user-defined type (a class type) (a data item). The difference between an object and a variable is that the variable retains state information and the object can have behavior(? )。 Here, an object refers to an instance of a user-defined type, whereas a variable is an instance of a primitive type. In the case where both object and variable are applicable, object is used as an inclusive term that represents "objects and variables." scope (SCOPE): Names can only be used in specific areas or program texts, which are calledScope of the name。 Storage classes (storage Class): The storage class of a named object determines its life cycle initialization, and in some cases, its connection (linkage). types (type): A name is associated with a type, which determines the meaning of a value, or the value that is stored in an object or returned by a function. variable (variable): A variable is a basic type of data item. Http://msdn.microsoft.com/zh-cn/library/csdhb88k.aspx

C + + Partial terminology (Terms)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.