C++
Last updated
Was this helpful?
Last updated
Was this helpful?
Make sure that your text editor is properly configured to use spaces instead of tabs.
Filenames should be all lowercase and words are separated by underscores ( _ ). For instance:
Class names should be nouns in , i.e. the first letter of every word capitalised. Use whole words and avoid acronyms or abbreviations (unless the abbreviation is much more widely used than the long form, such as SVM or ROS).
Regular functions have mixed case. The first word (which is usually a verb) starts with lowercase and the remaining words follow the practice. For instance:
Variable names are all lowercase, with underscores between words. Class member variables have trailing underscores. For instance: