function()
{
// Tab
}
Bracket Conventions
Sorry to be a copycat, but I just have to know which style most people use for coding in C/C++. With all these debate threads (naming conventions, char* vs. string), I thought maybe we should talk about something that really matters [wink]. Brackets! Also do you use tabs or spaces for indentation.
I use: [cool]
I like the way the brackets line up.
I use this:
I seperate almost everthing with a space so as that the code is clean and easy to read.
int Blah( int thing0, int thing1, int thing2 ){ thing0 = thing0 + ( thing1 * thing2 ); somearray[ thing2 ] = thing1 / thing0; return SomeFunc( somearray[ thing2 ] );}
I seperate almost everthing with a space so as that the code is clean and easy to read.
I use the One True Brace style :) with tabs for indentation, that are displayed as four spaces by my editor.
Presumably, you've all hit a brick wall with your projects if you've got time to reply to this thread...
Yes, i have hit a brick wall.
I'm entering the "More Coffee" phase of development, quickly approaching the "I Hate Stupid Vertex Buffers" phase.
Yes, i have hit a brick wall.
I'm entering the "More Coffee" phase of development, quickly approaching the "I Hate Stupid Vertex Buffers" phase.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement