Home > Programming > C Programming Language



C/C++ Programming Style Guidelines

Sort Desciption:

The formatting style presented here is essentially that used by Stroustrup in The C++ Programming. Language. If you use Emacs you can make this your default ...



Content Inside:

C/C++ Programming Style GuidelinesPage 1C/C++ Programming Style GuidelinesTable of ContentsIntroductionFile ContentsFile FormatChoosing Meaningful NamesCommentsSyntax and Language IssuesConclusionAppendix A. Review ChecklistReferencesDe gustibus non est disputandum. IntroductionThis document contains the guidelines for writing C/C++ code for Dynamic Software Solutions. Thepoint of a style guide is to greater uniformity in the appearance of source code. The benefit is enhancedreadability and hence maintainability for the code. Wherever possible we adopt stylistic conventions thathave been proved to contribute positively to readability and/or maintainability.Before code can be considered for peer review the author must check that it adheres to these guidelines.This may be considered a prerequisite for the review process. A checklist is provided at the end of thisdocument to aid in validating the source code's style. Where code fails to adhere to the conventionsprescribed here may be considered a defect during the review process.If you have not already please study Code Complete by Steve McConnell. This book provides a detaileddiscussion on all things related to building software systems. It also includes references to statisticalstudies on many of the stylistic elements that affect program maintainability. Another valuable source ofsolid programming practice tips is The Practice of Programming by Brian W. Kernighan and Rob Pike.Scott Meyers' books Effective C++ and More Effective C++ should be considered required reading forany C++ programmer.And what person would be considered complete without having read The Elements of Style by Strunk andWhite?ReferencesThe C++ Programming Language Bjarne Stroustrup 0201889544 AddisonWesley 1997.Code Complete: A Practical Handbook of Software Construction Code Complete Steve McConnellC/C++ Programming Style Guidelineshttp://www.workingsoftware.com/h andbook/style/t1.html (1 of 2) 10/1/2000 7:06:01 PM]Page 21556154844 Microsoft Press ...

Source: www.literateprogramming.com


add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us

 

Related Files

Programming in C C++ Java

Filed under: Programming and C Programming Language
Programming in C C++ Java. Course Overview. Object oriented programming languages are widely used for the development of complex software systems. ...

C Programming

Filed under: Programming and C Programming Language
The C Programming Language ANSI C. By Brian W. C. Kernighan & Dennis M. Ritchie. K and R. "Practical C programming". By Steve ...

An Overview of the C++ Programming Language

Filed under: Programming and C Programming Language
The C++ programming language provides a model of memory and computation that ... 3 The C Programming Model presents the C subset of C++ and other C++ ...

C Programming Fundamentals

Filed under: Programming and C Programming Language
1 C Programming Fundamentals C is a compiled language. The user creates source code (often ... exe extension). Below is typical C program called LED.C that illustrates some fundamental C ...

Essential C

Filed under: Programming and C Programming Language
C Programming Language (below) as part of their research at AT&T. Unix and C++ ... The C Programming Language 2nd ed. by Kernighan and Ritchie. ...