Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

View Poll Results: What Indentation Style do you use for C/C++? (Choose both style and indent size)
1TBS/K&R 1 14.29%
Allman 4 57.14%
Whitesmiths 0 0%
GNU 0 0%
8 spaces per indent 0 0%
4 spaces per indent 2 28.57%
2 spaces per indent 2 28.57%
other spaces per indent 2 28.57%
Multiple Choice Poll. Voters: 7. You may not vote on this poll

 
 
Thread Tools Display Modes

 
C/C++ Indentation styles
Reply
Posted 2002-04-10, 01:02 PM
I have two printouts taped up on the wall in my office, one of which is entitled "The 10 Commandments for C Programmers" and the other is a entitled "C/C++/Java Indentation Styles". The general reason that they are there is because my coworkers don't use the One True Brace Style (1TBS for short). Anyway, it caused me to wonder which indent/brace style you guys prefer.

Here is a link to a page that details them (the one on my wall, infact) www.effectivejava.com/steve/braces/main.html

Edit: 
Choose your style and your indent size


Just a fun poll, I won't get mad at you because you don't use 1TBS
--WetWired

Last edited by WetWired; 2002-04-10 at 01:08 PM.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-04-10, 01:16 PM in reply to WetWired's post "C/C++ Indentation styles"
Allman @ 4 spaces
I think I'm lost.
Old
Profile PM WWW Search
Badass Gandhi is neither ape nor machine; has so far settled for the in-betweenBadass Gandhi is neither ape nor machine; has so far settled for the in-between
 
Badass Gandhi
 



 
Reply
Posted 2002-04-13, 04:16 PM in reply to WetWired's post "C/C++ Indentation styles"
Allman, 3 spaces.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2002-04-14, 06:21 AM in reply to WetWired's post "C/C++ Indentation styles"
4 spaces
Old
Profile PM WWW Search
Mr.Lee is neither ape nor machine; has so far settled for the in-betweenMr.Lee is neither ape nor machine; has so far settled for the in-between
 
 
Mr.Lee
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:10 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.