What is better /standard for creating files. a cpp file with header or cpp and seperate file for hea

Discussion in 'C++' started by DrUg13, Feb 10, 2004.

  1. DrUg13

    DrUg13 Guest

    Hello, after class, I checked the website and found that most class
    members had put the header inside of the cpp file. I usually create a
    seperate file for each.

    Which is better?? and if you put them in one file, the #endif
    goes at the end of the header part right??

    Thanks for any responses.
     
    DrUg13, Feb 10, 2004
    #1
    1. Advertising

  2. DrUg13

    DrUg13 Guest

    never mind, i just read a real good explanation of this in the c++
    programming language.
    On Tue, 10 Feb 2004 08:24:36 GMT, DrUg13 <>
    wrote:

    >Hello, after class, I checked the website and found that most class
    >members had put the header inside of the cpp file. I usually create a
    >seperate file for each.
    >
    > Which is better?? and if you put them in one file, the #endif
    >goes at the end of the header part right??
    >
    >Thanks for any responses.
     
    DrUg13, Feb 10, 2004
    #2
    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. Chris Mantoulidis
    Replies:
    3
    Views:
    440
    Jared Dykstra
    Dec 20, 2003
  2. moondaddy
    Replies:
    2
    Views:
    606
    Steven Cheng[MSFT]
    Oct 16, 2006
  3. Ben
    Replies:
    12
    Views:
    660
    Diego Martins
    May 29, 2006
  4. crazygrey
    Replies:
    0
    Views:
    395
    crazygrey
    Aug 25, 2008
  5. mlt
    Replies:
    2
    Views:
    907
    Jean-Marc Bourguet
    Jan 31, 2009
Loading...

Share This Page