Changes between Version 11 and Version 12 of code/C++_styleguide
- Timestamp:
- Dec 5, 2007, 2:10:43 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/C++_styleguide
v11 v12 10 10 == Files == 11 11 === Header and Source === 12 Keep your classes/files short, don't exceed 2000 LOC (if it get's longer you may separate functions into different modules). Put every class in a separate file and name the file like the class name ( don't use !CamelCase names separate them with underlines). Create a separate header (ends with .h) and source file (ends with .cc) and don't include header files in header files but rather in source files if you can help it. Example for class {{{MyExampleClass}}}.12 Keep your classes/files short, don't exceed 2000 LOC (if it get's longer you may separate functions into different modules). Put every class in a separate file and name the file like the class name (use !CamelCase names). Create a separate header (ends with .h) and source file (ends with .cc) and don't include header files in header files but rather in source files if you can help it. Example for class {{{MyExampleClass}}}. 13 13 {{{ 14 14 file names: 15 my_example_class.cc16 my_example_class.h15 MyExampleClass.cc 16 MyExampleClass.h 17 17 }}} 18 18