Off Topic > Off Topic
Programming Megathread
<< < (134/241) > >>
Ravencroft·:
The console starts to work again when I remove these 3 lines:
Headcrab Zombie:
Well for one your loop condition is forgeted and you probably want x<=13
Ravencroft·:
ye that was it lol
SetGaming:

--- Quote from: Foxscotch on May 09, 2016, 02:54:27 PM ---also when I rewrote that stuff I begrudgingly used the same brace style you did, but nevertheless I want to expose you to this way too. just in case you like it better

for (int i = 0; i < 10; i++) {
    // stuff
}

--- End quote ---

Visual Studio formats code to the Allman style (the [<statement> n/ { n/ body n/ }] format)  by default - while most people despise it, VS autocorrects to it so everything looks like bleugh.
Ipquarx:
braces are special and deserve their own line >:(

no but seriously it just spaces things out nicer for me and i like being able to clearly see where the block begins and ends by looking 1 indent level behind

In addition, I'm pretty sure you can change the way it handles indentation.

Edit: Yep, just checked.


Navigation
Message Index
Next page
Previous page

Go to full version