Almost any C++ compiler will have a compiler setting to disable the '++' part (including VC++).
Main differences:
- No new/delete. Use "malloc(sizeof(type))" and cast to desired type and 'free(ptr)'.
- IIRC, you can't do 'for (int i = 0; i < 10; i++)', you have to declare 'i' before the 'for' statement.
- You must prefix type names with the type of type, ie. 'struct mystruct' must always be referred to like that, never as just 'mystruct'. eg: 'struct mystruct myvar;'
- Typedefs remove this restriction 'typedef struct mystruct myotherstruct' lets you use 'myotherstruct' as a type.
- No code inside types (ie. member functions).
- No inheritance
- No bool type or true/false constants
- No function overloading
To name but a few
[b]
