|
From: Trevor C. <TCc...@ya...> - 2001-02-25 22:03:26
|
Hi, I am new to this list and very new to C++ and programming in general, and I am wondering: My friend, who is also learning C++, told me that it is bad programming form to declare class variables and functions public, which I can understand for the sake of reusability and simplicity. However, he also told me it was bad form to let Main() do too much work and that you should send as many tasks as you can to different functions... Is this so? Why? I can see why for more complex functions, but what about really simple things. For example, should I even write simple output functions to keep any "cout" lines out of main()? Thanks for any help, Trevor Cook |