小言_互联网的博客

c++ 标志符Identifiers

293人阅读  评论(0)

c++ 标志符Identifiers

Identifiers in C++ can be composed of letters, digits, and the underscore character.

The language imposes no limit on name length.

Identifiers must begin with either a letter or an underscore. Identifiers are case-sensitive; upper- and lowercase letters are
distinct.

The language reserves a set of names. These names may not be used as identifiers.
The standard also reserves a set of names for use in the standard library.

The identifiers we define in our own programs may not contain two consecutive underscores, nor can an identifier begin with an underscore followed immediately by an uppercase letter. In addition, identifiers defined outside a function may not begin with an underscore.


转载:https://blog.csdn.net/Lee567/article/details/104081234
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场