what's wrong?
It keeps coming up with to few arguments to function ( its in a header)
Code:inline float tang(string A_O_Aj, float angle, float opposite, float adjacent) { float x = 0; if(A_O_Aj == "A") { x = opposite / adjacent; x = atan(x); x = x * (180 / 3.141592); return x; } if(A_O_Aj == "O") { x = angle * (3.141592 / 180); return x; } if(A_O_Aj == "Aj") { x = opposite / (tan(angle * (3.141592 / 180))); return x; } }



LinkBack URL
About LinkBacks


