C and C++ Coding Styles
>> Tuesday, October 20, 2009
You can get these C/C++ coding standards documents freely available on the Internet. You can get these C/C++ coding standards documents freely available on the Internet. 1. Stroustrup The classic Stroustrup style for C++ code as shown in the code samples from his bible The C++ Programming Language. It is a C++ version of the classic "K&R" (Kernighan and Ritchie) C formatting style. Bjarne Stroustrup's C++ Style and Technique FAQ is available here. 2. Possibility This coding style is based on the layout style outlined in the C++ Coding Standard document written by Todd Hoff of Possibility Outpost, Inc. 3. MFC This coding style is based on a combination of the layout of the source code generated by the Microsoft Visual C++ Class Wizard and the layout of the MFC source itself. 4. Ellemtel This coding style is based on the layout style devised by Mats Henricson and Erik Nyquist while they worked at Ellemtel Telecommunications in Sweden. It is available in it's entirety here. It has also been rewritten as a book for Prentice Hall called "Industrial Strength C++" (ISBN: 0131209655). 5. GNU This coding style is based on the layout style outlined in the GNU Coding Standard and the C++ ammendments from the C++ Standard Library Style Guidelines. It's the coding style of Richard Stallman too. 6. Mozilla This coding style is based on the layout style outlined in the Mozilla C++ portability guide of David Williams. 7. Indhill This coding style is based on the layout style outlined of Indian Hill C Style and Coding Stan-dards paper, the authors of it are Bell Labs, University of Toronto, Berkeley University & SoftQuad Incorporated. 8. Whitesmith Popularized by the examples that came with Whitesmith's C, an early commercial C compiler. This style is known as an "Indented Braces" style. Information on Whitesmith's and other styles can be found here. 9. Wildfire This coding style is based on the layout style documented in the Wildfire C++ Programming Style by Keith Gabryelski. This document is available here. 10. Flipcode This coding style is based on the style of Albert Sandberg. This document is available here. C/C++ Coding Style
0 comments:
Post a Comment