CS 1124 — Object Oriented Programming

Common C++ Programming Errors

Some of these errors will cause compilation errors. Some may compile but result in linking errors. Some will compile and link but cause errors while running. And some, you may get away with completely, but are just dumb things to do and will probably bite you another time.

Design Issues

Students often have trouble getting their code to work, not because they have trouble with C++, but because they have trouble breaking a problem into pieces that make sense. This applies nearly as much to students who generally do well in the course as it does to those who struggle.

The general problem comes down to, "Can you say in a few words what the purpose of a section of code is?" The simpler your description, then the more likely your code actually does what you wanted.

Home


Maintained by John Sterling (jsterling@poly.edu). Last updated January 23, 2011