Does anybody know where I can go on this site or elsewhere to learn how to write a good program-I mean as in syntax-indentation-etc? I'd greatly appreciate it and apparently need it-the program I submitted is not what I'd turn in. Again, thank you
Does anybody know where I can go on this site or elsewhere to learn how to write a good program-I mean as in syntax-indentation-etc? I'd greatly appreciate it and apparently need it-the program I submitted is not what I'd turn in. Again, thank you
http://en.wikipedia.org/wiki/Programming_style
And from there, it leads to here:
http://en.wikipedia.org/wiki/Indent_style
Indentation styles
http://en.wikipedia.org/wiki/Indent_style
Personally, I don't care which you choose so long as you apply it consistently.
Also, don't automatically assume that because your super smart IDE makes all the code line up that message boards will do the same. Use preview before submit to ensure that "What you see it what we will get" feel.
Oh, and if you must use colour, use it sparingly to highlight specific points of interest.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.