Are dollar-signs allowed in identifiers in C++03?
问题 What does the C++ standard say about using dollar signs in identifiers, such as Hello$World ? Are they legal? 回答1: A c++ identifier can be composed of any of the following: _ (underscore), the digits 0-9, the letters a-z (both upper and lower case) and cannot start with a number. There are a number of exceptions as C99 allows extensions to the standard (e.g. visual studio). 回答2: They are illegal. The only legal characters in identifiers are letters, numbers, and _. Identifiers also cannot