Coding standard is very essential for readability and maitainence of programs. And it also greatly inproves the productivity of the programmer. The GNU C++ compiler must enforce coding discipline. The following is suggested - inside class definition:
In the sample code given below t stands for protected, v stands for private, m stands for member-variable and p stands for pointer.
class SomeFunMuncho
{
        public:
                int     mTempZimboniMacho; // Only temporary variables should be public as per OOP
                float   *mpTempArrayNumbers;
                int     HandleError();
                float   getBonyBox();  // Public accessor as per OOP design
                float   setBonyBox();  // Public accessor as per OOP design
        protected:
                float   mtBonyBox;
                int     *mtpBonyHands;
                char    *tHandsFull();
                int     tGetNumbers();
        private:
                float   mvJustDoIt;
                char    mvFirstName[30];
                int     *mvpTotalValue;
                char    *vSubmitBars();
                int     vGetNumbers();
};
Visit the C++ Coding Standards URLs
See also