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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DrUg13

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

    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

    #2
    Re: What is better /standard for creating files. a cpp file with header or cpp and seperate file for header

    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 <livefast@dieyo ung.com>
    wrote:
    [color=blue]
    >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.[/color]

    Comment

    Working...