None are really being inforced due to the large number of developers
each with their own styles but broadly below is an example
Member variables are m_<type>Name;
#ifndef MYCLASS_H_
#define MYCLASS_H_
class CMyClass
{
int m_iInteger ;
CString m_sString;
void private_member_function();
public:
CMyClass();
~CMyClass();
protected:
void ProtectedMemberFunction() ;
public:
void Public_Member_Function() ;
};
#endif
Take Care As Visual C++ Does Not Always Give ! highest precidence in debug mode.
if ( !apple() && banana() || cherry() )
Is Not The Same As:
if ( (!apple()) && (banana() || cherry()) )
© 2001 by Montego Data Limited® All rights reserved.