GCC is not involved in this fun.
All tutorials will tell you that C + + variable names, class names, and function names should be letters, numbers, and underscores that begin with a character letter or underscore, like this:
int _abc123;
In fact, VisualStudio does not adhere to this specification, but is broader, which can:
#include <stdio.h>#include<tchar.h>#defineIf the IF#definePrint printf#defineBack to return#defineStart#defineEnd#defineMain function _tmain#defineinteger int//Pure Chinese C + + programmingInteger main function (integer parameter, _tchar*argv[]) Start if (1>0Print"1"); Printing ("Fyter Print%d", parameters); Return0; end
This is a program that can be compiled at vs.
So for such a compiler, the variable name should be:
Non-visual characters are not allowed, like tab,\n,\r ...
Operators are not allowed, like =-+*/...
Keywords are not allowed, like const,int,class ...
Any character other than the
C + + fun variable name, subversion of all textbook VisualStudio