do I have to include headerfiles and using namespace std in cpp or not

Hi guys I'm wondering for example if I make 3 different classes a main class,a Birthday class,and a people class,now for example first of all do I need to include the using namespace std in the .h file and the .cpp file,or just the cpp file?

also when I am including a header file from the people class does it have to be used in the .cpp and the .h file or just the .h file of the Birthday class?

Thanks
Last edited on
You can do the whole thing in a single file if you like.

Your questions suggest that you don't really understand what it means to include a header file, or understand what the compilation and linking process is.

If you understand what these are, you will be able to answer your own questions.

Start here: https://www.daniweb.com/programming/software-development/tutorials/466177/understanding-c-from-source-to-binaries
Topic archived. No new replies allowed.