Search NASASearch

NASA NTRS · 20080039927

C++ Coding Standards and Style Guide

Abstract

This document is based on the "C Style Guide" (SEL-94-003). It contains recommendations for C++ implementations that build on, or in some cases replace, the style described in the C style guide. Style guidelines on any topics that are not covered in this document can be found in the "C Style Guide." An attempt has been made to indicate when these recommendations are just guidelines or suggestions versus when they are more strongly encouraged. Using coding standards makes code easier to read and maintain. General principles that maximize the readability and maintainability of C++ are: (1) Organize classes using encapsulation and information hiding techniques. (2) Enhance readability through the use of indentation and blank lines. (3) Add comments to header files to help users of classes. (4) Add comments to implementation files to help maintainers of classes. (5) Create names that are meaningful and readable.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hughes, Steven, Jun, Linda, Shoan, Wendy. 2005-05-24. C++ Coding Standards and Style Guide. https://ntrs.nasa.gov/citations/20080039927

Cite the original work for its findings. Save a collection to share your selection of sources.