czesc
Mam maly problemik, zainstalowalem vc++2005 +psdk probuje napisac maly programik i nie wiem dlaczego nie dziala skoro w vc++ 6.0 dziala bez problemu :
#include<iostream>#include<math.h>using namespace std;void main(){ int a; cin>>a; cout<<sqrt(a);}
i pokazuje mi takie bledy
Compiling...
p1.cpp
.\p1.cpp(9) : error C2668: 'sqrt' : ambiguous call to overloaded function
D:\programowanie\VC++ 2005\Include\crt\math.h(570): could be 'long double sqrt(long double)'
D:\programowanie\VC++ 2005\Include\crt\math.h(522): or 'float sqrt(float)'
D:\programowanie\VC++ 2005\Include\crt\math.h(179): or 'double sqrt(double)'
while trying to match the argument list '(int)'
Build log was saved at "file://d:\programowanie\projekty\666\666\Debug\BuildLog.htm"
666 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
co tu jest nie tak???? pls help!!!