I am having trouble getting my calcGross Method. I can't get it to multiply a int* by a double* to go into a double. I am also getting an error on line 9 at the beginning of my second prototype saying that I need a bracket {
Your function declaration prototypes at line 8, 9 and 10 all need a semi-colon.
8 9 10
int getHoursWorked();
double getPayRate();
double calcGross(int*,double*);
Without them the compiler thinks you are trying to define the functions, actually just the first one on line 8, the reason why you get the error for the missing bracket at line 9.
This code. HOURS is a pointer. HOURS2 is an int. One of them represents a memory address. One of them represents a number. What you're doing makes no sense at all.
I can't get it to multiply a int* by a double* to go into a double
That doesn't make any sense. You should multiply an int by a double. Trying to multiply two pointers together makes no sense.
Why are you passing Plain Old Data types (int, double) by pointer (or reference) anyway? You are not modifying the passed parameters, and passing POD types by value doesn't have the performance hit that passing complex data types like classes and STL containers can have.
You are over-complicating what should be a simple coded function. HOURS2 and GROSSPAY are two function scoped variables that really don't serve much purpose.