正在加载图片...
Programming in C++ Detailed Scope Rules 1 Function name has global scope 2 Function parameter scope is identical to scope of a local variable declared in the outermost block of the function body 3 Global variable(or constant) scope extends from declaration to the end of the file, except as noted in rule 5 4 Local variable (or constant) scope extends from declaration to the end of the block where declared This scope includes any nested blocks, except as noted in rule 5 5 An identifier's scope does not include any nested block that contains a locally declared identifier with the same name (local identifiers have name precedence).7 Detailed Scope Rules 1 Function name has global scope. 2 Function parameter scope is identical to scope of a local variable declared in the outermost block of the function body. 3 Global variable (or constant) scope extends from declaration to the end of the file, except as noted in rule 5. 4 Local variable (or constant) scope extends from declaration to the end of the block where declared. This scope includes any nested blocks, except as noted in rule 5. 5 An identifier’s scope does not include any nested block that contains a locally declared identifier with the same name (local identifiers have name precedence)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有