C++ style guide: Difference between revisions

m
m (Show more code of reference use)
Line 178: Line 178:
=== references ===
=== references ===


Use references when passing variables that will be changed to subroutines rather than the C-style method of passing pointers.
Use references when passing variables that will be changed by a subroutine rather than the C-style method of passing pointers.


{| class="wikitable"
{| class="wikitable"
1,072

edits