Okay, here we go again,
This is not exactly a programming code question. I feel pretty sure I can write the code.
This question is specific to borland 6 c++
My instructor is having us write a program using a class file he wrote, and a file called student.h, he then gave us another file to show how to manipulate the class.
From this we write code to do a list of specific items.
here is the problem (giving permission to laugh!)
When i open my two .cpp files and the student.h file, go to compile, i do not think that the student.h file is being included (linked to), also this does not seem to do anything (the program)
If some one could please tell me how to include a .h file (header file) that is written seperately in the project in borland then I think I can tackle this.
please visit our site, it is not finished but it is on its way!
[Moderator edit: Link removed]
The header file gets included by a #include preprocessor statement in one or both of your cpp files. Check those. One or both should have this include statement.
If that is done, the .h file will be compiled because the previous step (preprocessing) will simply grab the text inside the .h file and copy it to the cpp file replacing the #incude preprocessor directive.
so i just open all three files, how do i make sure that the compiler is using the project.cpp file instead of the student.cpp file as the main running running file.
thanks for the help
my brain is tired!
There's not really such a thing as main file... there is a main function, generally called "main" for commandline programs or "WinMain" for Windows programs. So long as all of your cpp files have only one main function, you should be fine.
Thanks for all the help, I was opening to many files and not thinking it through
Got it first time after closed everything out walked away, came back and reopened files