One thing that I've noticed is that some people will put their code in three files, one header file defining the class, one to define the methods, and one to implement them. Others only use two pages, one for the class definition and its methods, and the other page for the implementation. Lastly, some people (including me) just shove everything into one page. Is there an advantage to any of these besides less cluttered code?
Another thing I've noticed is that some people will use this
using std::cout; using std::endl;
and so on. I find it easier to do this
using namespace std;
Why bother using the first method?
I'm a self-taught programmer, so I'm not sure why people do these things...
This post has been edited by ericr2427: 13 March 2009 - 01:00 PM

New Topic/Question
Reply



MultiQuote





|