Can you post a complete program, including
- the main(),
- the include files,
- how you compiled it,
- and what you saw on the output (copy/paste from your console).

For instance, C and C++ handle 'const' differently.