The unsigned long long doesnt work.
if i change:
Code:
double x_double;
double y_double;
into:
Code:
unsigned long long x_double;
unsigned long long y_double;
I get this error message:
Code:
c:\...\main.cpp(20) : error C2668: 'pow' : ambiguous call to overloaded function
c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
c:\program files\microsoft visual studio 9.0\vc\include\math.h(573): or 'long double pow(long double,long double)'
c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
c:\program files\microsoft visual studio 9.0\vc\include\math.h(525): or 'float pow(float,float)'
c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
c:\program files\microsoft visual studio 9.0\vc\include\math.h(123): or 'double pow(double,double)'
while trying to match the argument list '(unsigned __int64, unsigned __int64)'
With casting those ints to doubles do you mean this? (The thing im doing right now?)
Code:
y_double = y;
x_double = x;
power_table[x][y] = pow(y_double,x_double);
Sorry, my english lets down on me from time to time.
Thnx a lot for your help,
Onii