i got a problem with exponentiation(< i think its called that in english XD)
gives me this error in visual c++:Code:int b = 1;
int a() {
return 600 ^ ((double)b / 100 + 1);
}
Code:expression must have integral or enum type
Printable View
i got a problem with exponentiation(< i think its called that in english XD)
gives me this error in visual c++:Code:int b = 1;
int a() {
return 600 ^ ((double)b / 100 + 1);
}
Code:expression must have integral or enum type
That is because ^ is the bitwise excluside or operator, not exponentiation.
You could #include <cmath> and use std::pow instead.
Thanks it works now =D