Ask your own question, for FREE!
Computer Science 19 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!