CS35: Style Guide

When writing programs, it is in your best interest to keep everything tidy. By following consistent style guidelines, you will find it easier to read and edit your code (and, for pair labs, your partner will as well). Here are some examples of good style when writing C++. Please remember to refer to the lab write-ups to know what is required for each assignment.

Well-dressed people (style)

Your method/field documentation does not have to be in the format above, but you must describe the method’s behavior, its parameters, its return value, and any exceptions that it may throw. (If you’re indifferent, the above syntax is a good one to know; it’s a de facto standard used by Javadoc, Doxygen, and other tools that automatically process source code comments into other formats like searchable webpages.)