- UpperCamelCase Classes: class Class {};
- lowerCamelCase methods: myMethod() {}
- prefix pointers with "p": Pointer pPointer = new Pointer();
- prefix int (unsigned, long, short) with "n": int nCount = 1;
- prefix SString with "s": SString sString;
- prefix char* (const char*) with "sz": const char* szString = "String"; SString sString = szString;
- prefix float (and double) with "f": double fValue = 0.0;
- lowerCamelCase objects and C++ references of stack/instance variables: MyClass myClass; and MyClass& myClass;
Monday, 1 January 2001
Coding Conventions
Please...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment