on line 59 you are missing the semicolon.
thanks. is there a program that you know of that can identify those kind of simple errors?
Yes, there are many programs. They generally fall under the category of program known as C++ Compilers. Some give you better error messages than others.
try using either fixed or setprecision, but not both.
that didnt work.
compiler gives this error though:
warning: the address of `double trigSum(double, double)', will
always be `true'
End of line 62:
<< trigSum << endl;
You're printing a function itself, not its return value. Try removing line 59 and actuall calling the function:
<< trigSum(num1,num2) << endl;
Last edited on
Replace trigsum in line 62 with line 59.
that worked thanks to you all.