Style Guide for C/C++ Programming

Version 1.2. Last Revised: January 8, 2003

This document describes the style guide for C and C++ programming used by the ECET department at Vermont Technical College. Adherence to this guide is at the descretion of each instructor. However, conformance is encouraged for all C and C++ programming done in any VTC class.

This guide is not intended to cover all aspects of style that might be defined. One can still write poorly styled programs while following this guide. Instead this guide is intended to cover essential issues so that students who are not experienced with any particular style develop good habits from the start. By adopting a standard style, the department also hopes to simulate the formality of some professional programming environments and facilitate the work of instructors, tutors, and peers who wish to help others with their programs.

In this document the word "shall" is used to indicate a requirement of this guide. The word "should" is used to indicate a recommendation of this guide. The word "can" is used to indicate an allowable option.

Indentation and Spacing


File Layout


Other Items

Return to the ECET Department page.

© Copyright 2003 by Peter Chapin. All rights reserved.
Last Revised: January 8, 2003