I'm supposed to get hours, and a letter, then work it out.
So,
-I get integer "h" with int getHrs
-I get char "p" with int getPkg
-I set ranges for h and p with getValidHrs, and getValidPkg
-I don't know what to do after that.
I'm supposed to get the Bill from an internet service company based on what package they have and the amount of hours they watched.
I don't know what I'm doing. I'm supposed to display it on a different .cpp file by using a header file to connect both .cpp files.
Here it is, but I don't know how to connect both files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "_MyDeclarations.h"
#include <iostream>
usingnamespace std;
void main()
{
int hrs = getValidHrs("How many hours did we provide you with?");
char pkg = getValidPkg("What package do you have with us?");
}
OK so where is the file "_MyDeclarations.h"? Usually when you #include files there are two riles, the .h file and the .cpp file which are the header or interface file and the .cpp is the implementation file. Yours (so far) looks like an implementation file and you #include won't 'see' it because it's calling up header file.
So what you need to do is get the header file. Since you wrote it, it won't be hard to find.
Or change the #include or change the name of the file you do have. :)