I am learning this tutorial in a sequence . I am on Date structure right now. I will revise everything once again as return 0 said.
@ firedraco dont be rude .
Can you please tell me where in this tutorial it is mentioned how to make . h file ?
Thanks bazzy !
I know the file name its program1.h and I made it by saving it as .h extension but How can I know the path of the file name and source files ?
Weeeelll...
You need to have the "includer" in the same folder as the "included". So, say you had includeme.h on your desktop, you'd have to have iincludeyou.h on the desktop too.
There is ione folder on the desktop and everything is in it.All the files have extensions .h
I have included #include"filename.h"
as filenam.h is the actual file.
and tried to run it but it didn't work.
its in another folder on the desktop.
there are two folders on the desktop one is by the name of filename ( which is cpp) and the other is filename.h .
Do you have filename.h? If so which is its path? Which is the path of your source files?
Answer these question and you will solve your problems
Anonymouse said
You need to have the "includer" in the same folder as the "included"
This is because if you are compiling the file "somepath\somefile.cpp" which includes "someheader.h" you should have "someheader.h" in the same path as "somefile.cpp" or you should specify the "someheader.h" path