I am learning C ++. For me, my programming style is what looks best; it does not seem to comply with the rules of any particular style. Here is an example
void f(int x){
if (!x){
cout << "x is non-zero\n";
}
}
It is slightly different from a class or namespace:
class myClass {};
K & R style uses such bracketing for operators, but my style uses it for everything. I would like to know if there is a name there, so I can just say that my indentation style is unexplained using such examples.
source
share