(11 Feb 12, 03:41AM)Ronald_Reagan Wrote:[SELECT ALL] Code:for (int i = 0; i <=4; i++) {
flagScore();
}
You put a space after 'for', a space after '=' but not after '<=' and you put your first brace on the same line.
I hate you.
Not really. I know we all have different writing styles and there's nothing wrong with your's but I'm high-strung from reading other peoples' code and seeing the bizarre and flat out incorrect ways other people write.
For instance, a few days ago I read the source to a program that had a switch statement in it. The case values were keys(It was a keyboard callback function) and in this situation you normally use single quotes around the values(I actually don't know any other way). This subhuman monster was using backticks to open and single quotes to close. Like this:
[SELECT ALL] Code:
switch (x)
{
case `a': dostuff(); break;
case `b': dostuff(); break;
case `c': dostuff(); break;
}
That won't even compile. What the fuck is he thinking.
My list:
1. Beat whoever writes that way with a shovel.
2. See 1.
3. See 2.
4. See 3.
5. See 4.