Wondering about class names?

 

I got a book about programing EA. In the examples most of the created classes are prefixed with a C. CTrade, CTimer etc. I thought that this is a convention the author of the book decided to use for his book, but when I browsed the Include folder I see that most of the classes are names with a C. CObject, CString.

What does the C stand for in the class name?

 

You are right. It's just a convention.

There is no real requirement to start a class name with "C", but Metaquotes' developers decided to prefix all class names with a "C" to make it easier to differentiate class names (types) from variable names.

 
Ah, ok. So C standard for Class?
 
compojoom:
Ah, ok. So C standard for Class?

Very probably. There are multiple conventions (or standards) in naming classes, members, variables, methods and formatting sources. It was very useful in team development to keep uniformity. Your private code has no such requirements.

Reason: