pdf.css
Google


   


You are here: CodeIdol > C++ > C/C++ Programming Style Guidelines > page: 1 2 3 4 5 6 7 8 9 10 11


.h
files everywhere they are required.
2.1. Header (Interface) File Content
Header files should contain the following items in the given order.
1. Copyright statement comment
2. Module abstract comment
3. Revision-string comment
4. Multiple inclusion
#ifdef
(a.k.a. "include guard")
5. Other preprocessor directives,
#include
and
#define
6. C/C++
#ifdef
7. Data type definitions (classes and structures)
8.
typedef
s
9. Function declarations
10. C/C++
#endif
11. Multiple inclusion
#endif
Example 1. Standard (C) header file layout
/*
* Copyright (c) 1999 Fred C. Richards.
* All rights reserved.
*
* Module for computing basic statistical measures on
* an array of real values.
*
* $Id$
*/
You are here: CodeIdol > C++ > C/C++ Programming Style Guidelines > page: 1 2 3 4 5 6 7 8 9 10 11


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site




    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009