Coding standards for C/C++ or any language is required in order to
make the programs more readable/understandable by programmers. There are
C/C++ beautifiers (formating tools) to accomplish this goal.
Formatted (beautified) code improves
the productivity of programmers by 2 times!!
On Linux/Unixes there is a command called "indent" and "cb"
. Refer to 'man indent' and 'man cb'. Note that indent and
cb work for only "C" programs. For "C++" programs use
"bcpp". Download the beautifier program from one of the following
C++ : BCPP site is at
http://dickey.his.com/bcpp/bcpp.html
or at
http://www.clark.net/pub/dickey
C++ : BCPP ftp site is at
ftp://dickey.his.com/bcpp/bcpp.tar.gz