Unfortunately, I've hit a bit of a brick wall in coding & really need to learn a few fundamentals. I mean REALLY fundamental, like:
I learned C on a night course, but have cobbled together what I know of C++ myself. I write header files with all declarations & their actual code complete in there. Naturally, this means I have to be very careful of how I order things as I code. I can't help thinking that a class' implementation should go somewhere else (like a cpp file), but I don't know the conventions for this - where to write the includes, can the cpp file be brought in like a header file (or with the header file), etc.,etc.
Can anyone explain or point me to an FAQ that describes the whole header files & cpp files thign in C++ pretty thoroughly?
Also of use would be any detailed articles about hierarchy & general OO stuff.
I use it every day, but have gotten some terrible habits that I need to bust, and some gaping gaps in my 'knowledge'.
Thanks alot,
Douglas JL
Common sense is what tells you the world is flat.
I learned C on a night course, but have cobbled together what I know of C++ myself. I write header files with all declarations & their actual code complete in there. Naturally, this means I have to be very careful of how I order things as I code. I can't help thinking that a class' implementation should go somewhere else (like a cpp file), but I don't know the conventions for this - where to write the includes, can the cpp file be brought in like a header file (or with the header file), etc.,etc.
Can anyone explain or point me to an FAQ that describes the whole header files & cpp files thign in C++ pretty thoroughly?
Also of use would be any detailed articles about hierarchy & general OO stuff.
I use it every day, but have gotten some terrible habits that I need to bust, and some gaping gaps in my 'knowledge'.
Thanks alot,
Douglas JL
Common sense is what tells you the world is flat.