-
Notifications
You must be signed in to change notification settings - Fork 0
Рекомендации по оформлению кода
NoMonsters edited this page Oct 25, 2019
·
2 revisions
Type | Style |
---|---|
Namespace | under_scored |
Class name | CamelCase |
Function name | camelCase |
Parameters/Locals | under_scored |
Member variables | under_scored_with_ |
Enums and its members | CamelCase |
Globals | g_under_scored |
Constants | UPPER_CASE |
File names | Match case of class name in file |
#ifndef msr_airsim_MyHeader_h
#define msr_airsim_MyHeader_h
//--your code
#endif
int main(int argc, char* argv[])
{
while (x == y) {
f0();
if (cont()) {
f1();
} else {
f2();
f3();
}
if (x > 100)
break;
}
}