which code style is the best(Pico style,Banner style,Horstmann style,GNU style,Whitesmiths style,BSD KNF style,Allman style or K&R style)
i use GCC COMPILER
THANKS
i use GCC COMPILER
THANKS
He he I guess we all have adopted some coding indent style, perhaps without using a name on it. Here is a list of most of them http://en.wikipedia.org/wiki/Indent_styleAllman style here too (I had to look up what that actually means). I like the way the braces line up with each other: it helps me remember what level I'm at among loops and if statements.
Kind of hard to argue on those terms I guess When in Rome, do as the Romans doI tend to use whatever the coding standards of my employer say I must use
Typical! Those that can, do. Those that can't... Give bad marks to students who are better than them.I strongly prefer the Allman, though I developed it completely independently and didn't know it had a name until about five minutes ago! I was originally taught using the K&R style and got fed up always trying to track down mismatched braces. So on about my third program I started aligning them and got docked for not following the style that was presented. I explained why I preferred the way I was doing it to the instructor and got all the points back and never lost any more for it, even though it made it harder for him to grade my code since it looked 'funny' and therefore 'wrong' to him.
...
by Jake Hertz
by Duane Benson
by Robert Keim