c基础介绍外文翻译(编辑修改稿)内容摘要:

tokens can be bined to form C programs. Grammar productions include nonterminal symbols and terminal symbols. In grammar productions, nonterminal symbols are shown in italic type, and terminal symbols are shown in a fixedwidth font. Each nonterminal is defined by a set of productions. The first line of a set of productions is the name of the nonterminal, followed by a colon. Each successive indented line contains the righthand side for a production that has the nonterminal symbol as the lefthand side. Declarations in a C program define the constituent elements of the program. C programs are organized using namespaces, which can contain type declarations and nested namespace declarations. Type declarations are used to define classes, structs, interfaces, enums, and delegates. The kinds of members permitted in a type declaration depends on the form of the type declaration. For instance, class declarations can contain declarations for instance constructors, destructors, static constructors, constants, fields, methods, properties, events, indexers, operators, and nested types. A declaration defines a name in the declaration space to which the declaration belongs. Except 本科毕业设计(论文)外文翻译 5 for overloaded constructor, method, indexer, and operator names, it is an error to have two or more declarations that introduce members with the same name in a declaration space. It is never possible for a declaration space to contain different kinds of members with the same name. For example, a declaration space can never contain a field and a method by the same name. There are several different types of declaration spaces, as described in the following. Within all source files of a program, namespacememberdeclarations with no enclosing namespacedeclaration are members of a single bined declaration space called the global declaration space. Within all source files of a program, namespacememberdeclarations within namespacedeclarations that have the same fully qualified namespace name are members of a single bined declaration space. Each class, struct, or interface declaration creates a new declaration space. Names are introduced into this declaration space through classmemberdeclarations, structmemberdeclarations, or interfacememberdeclarations. Except for overloaded constructor declarations and static constructor declarations, a class or struct member declaration cannot introduce a member by the same name as the class or struct. A class, struct, or interface permits the declaration of overloaded methods and indexers. A class or struct furthermore permits the declaration of overloaded co。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。