Also one of your functions differs from the prototype:
Code:
void calcSum( int zeros, int evens, int odds);
int calcSum( int zeroCount, int oddCount, int evenCount)
{
calcuSum =(zeroCount + oddCount + evenCount);
}
In C++ you dont need to name the variables in your prototype, so you can declare your prototype like:
Code:
int calcSum(int, int, int);
I changed your function from void to int as it looks like you want to be returning a total here.Your function should then look something like:
Code:
int calcSum( int zeroCount, int oddCount, int evenCount)
{
return zeroCount + oddCount + evenCount;
}
With those changes I am now getting error messages: undefined references to getNumber , and writeNumber. I'll look into that later if no-one else here helps out first.