dollar sign in variable name?
问题 I stumbled on some C++ code like this: int $T$S; First I thought that it was some sort of PHP code or something wrongly pasted in there but it compiles and runs nicely (on MSVC 2008). What kind of characters are valid for variables in C++ and are there any other weird characters you can use? 回答1: The only legal characters according to the standard are alphanumerics and the underscore. The standard does require that just about anything Unicode considers alphabetic is acceptable (but only as