Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

This is probably a pretty nooby question, but I've got a C++ assignment involving inheritance hierarchy, and I'm gonna have to include several header files, and I know what I need to have in those files, I'm just not entirely sure how I should go about creating these (I'm guessing I just start a new project, and save it as a header instead of a source?), and then, where I should actually save the header file when it's done. Thanks for any help!

OpenStudy (anonymous):

What sort of header files have you been asked to execute inheritance? To answer your question, if you are using something like NetBeans there is usually a different folder in every project for header files.

OpenStudy (anonymous):

This depends on your development environment. The compiler needs to be able to find your header files. You can either put them in the same directory as the "regular files" (e. g. foo.cpp) or in a separate directory (or several). Other than that, header files are usually just text files with the extension ".h" (in some cases/conventions .hpp)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!