void tanFunc(double inputX)
{
double value=inputX;
double result;
double sinx,cosx;
sinx=sinxFunc(value);
cosx=cosFunc(value);
result=sinx/cosx;
inputX=result;
cout<<result<<endl;
}
im trying to get my sin function value and cos function value ,in case to calculate my tanx,however,it come out wf error cannot convert . error C2296: '%' : illegal, left operand has type 'double'
can anyone give some clues how to modify it ?


Sign In
Create Account


Back to top









