The fact is that the source is often designed to compile in both C mode and C ++ (for example, this is the case for WinAPI header files).
To do this, you can declare CONST macro, which is expanded in const when compiling C ++, and an empty string when compiling C.
It is often used in reality.
Extract from a fresh WinAPI header file:
#ifndef CONST #define CONST const #endif
In your particular case it is better not to bother, and to define CONST :
#define CONST const
(well, or find some header file in which it is).
More on the topic: Why does Microsoft in WinApi create its macros for the definitions in the language?
c++case sensitive (this is not a basic). You can not writeCONSTwhere you needconst.mAiN, where you needmain, etc. - αλεχολυτ