Skip to content

Instantly share code, notes, and snippets.

View SepidehAbadpour's full-sized avatar

Sepideh Abadpour SepidehAbadpour

View GitHub Profile
@SepidehAbadpour
SepidehAbadpour / C++CodingStandards.md
Last active July 13, 2019 01:25
C++ Coding Standards are written down for my own use. This is public because I want to get feedbacks and complete the list

C++ Coding Standards

Variables

1- Name of variabl should correspond with its application

int xx = 0;
int yy = xx + 1;

In the above example, the names xx and yy are not meaningful but in the following example, the names size and maxSize will carry a sense of the corresponding variable's usage in the code. The reader of the code can understand what is going to be stored in the variable just by reading the name of it.

int size = 0;