正在加载图片...
Slide 6 Variable names -Identifiers An identifier is a name for variables constants functions etc It consists of a letter(including the underscore)followed by any sequence of letters digits or underscores letter underscore() Names are case-sensitive. The following are unique identifiers Hello, hello, whoami, whoAMi, WhoAmI Names cannot have special characters in them e.g., X=Y, J-20,#007, etc are invalid identifiers C++ keywords cannot be used as identifiers Choose identifiers that are meaningful and easy to rememberSlide 6 Variable names --Identifiers • An identifier is a name for variables, constants, functions, etc. • It consists of a letter (including the underscore) followed by any sequence of letters, digits or underscores • Names are case-sensitive. The following are unique identifiers: Hello, hello, whoami, whoAMI, WhoAmI • Names cannot have special characters in them e.g., X=Y, J-20, #007, etc. are invalid identifiers. • C++ keywords cannot be used as identifiers. • Choose identifiers that are meaningful and easy to remember
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有