![]() |
[Help] cos() function with Classes
Code:
NumeroReal.h Code:
NumeroReal.cpp Code:
Main.cpp Code:
I want to find the cos( n1 ) but when i try to print it it gives me this error: ------ Build started: Project: CalculosNumeros, Configuration: Debug Win32 ------ Compiling... Main.cpp c:\documents and settings\mpayne007\my documents\visual studio 2005\projects\calculosnumeros\calculosnumeros\main .cpp(78) : error C2665: 'cos' : none of the 3 overloads could convert all the argument types c:\program files\microsoft visual studio 8\vc\include\math.h(116): could be 'double cos(double)' c:\program files\microsoft visual studio 8\vc\include\math.h(503): or 'float cos(float)' c:\program files\microsoft visual studio 8\vc\include\math.h(551): or 'long double cos(long double)' while trying to match the argument list '(NumeroReal)' Build log was saved at "file://c:\Documents and Settings\MPayne007\My Documents\Visual Studio 2005\Projects\CalculosNumeros\CalculosNumeros\Debu g\BuildLog.htm" CalculosNumeros - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
Re: [Help] cos() function with Classes
ahhh. I totally forgot this forum.. I have just remembered the crazy old guy and the mad Admin who wouldn't admit editing.
Just delete my thread... |
Re: [Help] cos() function with Classes
Quote:
|
| All times are GMT +5.5. The time now is 20:29. |