I am a newbie to c++. I found the following statement in a C++ book: "In any C++ program, a variable name starts with a letter and contains only letters, digits, and underscores.The following are not variable name:"
2x // a name must start with a letter
time$to$market // $ is not a letter, digit, or underscore
Start menu // space is not a letter, digit, or underscore
The question is why time$to$market is not variable name?
I tried to compile it and the compiler did not complain, the compiler i use is MinGW 32bit for c++ in QT. However it should complain!