View Single Post
Old 07-18-2006, 11:49 PM   #2 (permalink)
Beazel
Ape for Diddy
 
Beazel's Avatar
 
Join Date: Jun 2006
Location: Detroit, MI
Posts: 255
Reputation: 14
Default

I don't know much about C/C++, but this applies to all types of coding I do.

Indentation: Tab.
Bracket Placement: For one-liners, I use int main() {, for anything more than one line:
Code:
int main()
{
	std::cout << "lol, C++\n";
	cin.get();
}
Spaces between operators and declarations: Yes.
Spaces between function name and starting parenthesis: No.
Spaces between loop name and starting parenthesis: Yes.
Spaces for references and pointers: No.
Whether you omit the <int> in the following specialization: No clue what that is.
Beazel is offline