Style Guide for C/C++ Programming

Version 1.2. Last Revised: January 11, 2016

This document describes the style guide for C and C++ programming used in my programming classes at Vermont State University. Conformance is encouraged for all C and C++ programming done in any of my VTSU classes.

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, I also hope to simulate the formality of some professional programming environments and facilitate the work of other instructors, tutors, and peers who wish to help students 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.


Spacing and Indentation


Names


File Layout


Printing


Other Items


Last Revised: 2024-11-25
© Copyright 2024 by Peter Chapin <peter.chapin@vermontstate.edu>