Changes

Jump to navigation Jump to search
→‎Whitespaces: Added info about pointers and casts
'''Operator overloading'''
Operator keyword is NOT seperated from the name, except for type conversion operators where it is required.
<pre>
struct Foo {
}
};
</pre>
 
'''Pointers and casts'''
No whitespace after a cast; and in a pointer, we write a whitespace before the start but not after it.
<pre>
const char *ptr = (const char *)foobar;
</pre>
1,079

edits

Navigation menu