Is '@' used in C ++? In this yacc file, it is listed as a token. And I'm sure that I cannot use @ as part of the variable name. Is @ used in C ++? and how can i use it?
No, it is not used in C ++. It does not appear anywhere in the standard. In particular, it does not appear in the C ++ legal character set [lex.charset].
As mentioned above, "@" is not part of the C ++ standard; however, it appears in Objective-C, and therefore in Objective-C ++, and therefore in real code, such as WebKit.