Oh boy have I seen some awful coding practices... REALLY AWFUL stuff.
Here's a list of my top 5:
5. Arrays start at 0... NOT at 1.
4. Not reading the assignment and then asking for help is just plain dumb... I'll only be able to help you AFTER I READ the assignment, which you could have done.
3. Please don't forget that your general program runs linearly. That means that the if a line of code is after another, then it'll be executed afterwards... so if, for example, you want to output something after another thing, make sure it's after it in the code...
2. Seg faults... ugh they are frustrating, but if you don't know where it is I can't look at your code and just magically know the answer... use cerr statements!
1. If your using arrays to get the same sort of information (such as grades) and then finding an average... please, please use a loop of some sort... and just don't write it out for every single index and then make me read basically the same line of code over and over trying to find your error... please...
//END OF LINE
No comments:
Post a Comment