Definition on .cpp or .h ?

Discussion in 'C++' started by CPP beginner, May 27, 2009.

  1. CPP beginner

    CPP beginner Guest

    Is it better to put definition on headers or on cpp ?
    Why ?

    Does it increase size of object ?

    Template class definitions must always be on .h ?

    What does it cost ?

    Thank you
     
    CPP beginner, May 27, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DrUg13
    Replies:
    1
    Views:
    478
    DrUg13
    Feb 10, 2004
  2. Alex Vinokur
    Replies:
    7
    Views:
    413
    Greg Comeau
    Nov 15, 2004
  3. Vinu
    Replies:
    9
    Views:
    625
  4. Sam Steingold

    cpp: getting to the definition of a defined constant

    Sam Steingold, Sep 9, 2005, in forum: C Programming
    Replies:
    5
    Views:
    366
  5. www.hitechskill.com
    Replies:
    0
    Views:
    1,358
    www.hitechskill.com
    Apr 9, 2006
Loading...

Share This Page