Jump to content

RidgeRun Developer Manual/Coding Styles/C++: Difference between revisions

Line 101: Line 101:


Function names should use '''MixedCase'''. Start with a capital letter and have a capital letter for each new word.  
Function names should use '''MixedCase'''. Start with a capital letter and have a capital letter for each new word.  
Accessors (get/set) should follow the same convention as variables.


<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
/*Regular function*/
/*Regular function*/
FunctionName();
FunctionName();
/*Accesor*/
get_field();
</syntaxhighlight>
</syntaxhighlight>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.