Changes

Jump to navigation Jump to search
some cleanup and typos
We don't always follow these rules slavishly, in certain cases it is OK (and in fact might be favorable) to stray from them. Applying common sense, as usual, is a good idea.
In the following examples tabs are replaced by spaces for visual consistency with the Code Formatting Conventions. But in actual code, use tabs for indentions indentations (our tabs are assumed to be 4 spaces wide).
== Hugging braces ==
<pre>
if for (int i = 0; i < t; i++) { [...]} if (j < k) {
[...]
} else {
class Dummy() {
[...]
};
</pre>
'''Operator overloading'''
Operator keyword is NOT seperated separated from the name, except for type conversion operators where it is required.
<pre>
struct Foo {
2,051

edits

Navigation menu