NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
C++ Coding Standards and Style GuideThis 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.
Document ID
20080039927
Document Type
Preprint (Draft being sent to journal)
Authors
Hughes, Steven (NASA Goddard Space Flight Center Greenbelt, MD, United States)
Jun, Linda (NASA Goddard Space Flight Center Greenbelt, MD, United States)
Shoan, Wendy (NASA Goddard Space Flight Center Greenbelt, MD, United States)
Date Acquired
August 24, 2013
Publication Date
May 24, 2005
Subject Category
Computer Programming and Software
Distribution Limits
Public
Copyright
Work of the US Gov. Public Use Permitted.

Available Downloads

NameType 20080039927.pdf STI