GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Sep-2009, 00:46
ahbi82 ahbi82 is offline
Member
 
Join Date: Jul 2006
Posts: 143
ahbi82 will become famous soon enough

Coding style and guideline


Hi all, i would like to know what are the coding styles and guidelines that some of you are practicing. Here can i source for more information. I know Microsoft (MFC/ATL), google and many others follow a set of their own styles. For example in MFC, the class is prefix by a "C", member variables are prefix by a "m", int are subfix with INT32...etc

CPP / C++ / C Code:
class CMyClass {
public:
    CMyClass();
    ~CMyClass();

private:
    int       m_var1INT32;
    char*   m_pVar2;
    char** m_ppVar3; 
};

I did some google-ing, but most of them emphasize on the style like where the braces should be place, indentation, ... etc. I hope someone can help me by providing some links on those coding styles. I would like to adopt one standard coding in all my projects.


Thanks in advance!!
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:17.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.