Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question 3

Status
Not open for further replies.

sedawk

Programmer
Joined
Feb 5, 2002
Messages
247
Location
US
Hi,

Thanks for your answers on my simple questions.

This simple question is about programming style:

When I read the sample programs from MSDN and the programs generated by Wizards, they all have similar coding style: a couple files each devoting to some specific functions of one class. Besides this, each class basically has its own header file to declare methods. It is more readable.

My wondering is that: is it practical to adopt this coding style? And do your C/C++ experts in your work really use this coding style?

The most important question is: Is it a good beginning to learn this coding style?

Thanks.
 
think about it if it wasn't so.

Having one file for one class and to this file having
the corresponding heading file not only makes it much
more readable, it also makes your work more reusable.

it's better to adopt this style from the beginning,
otherwise you end up with mixed-style-programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top