Open main menu

Difference between revisions of "Code Formatting Conventions"

m
(→‎Whitespaces: mention arrow operator)
m (→‎Whitespaces: grammar)
Line 144: Line 144:
'''Arrow operator'''
'''Arrow operator'''


We use put no spaces around the arrow operator.
We put no spaces around the arrow operator.
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
int a = foo->bar;
int a = foo->bar;