S
say88
C or C++ version,os independent,can be used
under linux and windows.
Thanks for advanced.
under linux and windows.
Thanks for advanced.
say88 said:C or C++ version,os independent,can be used
under linux and windows.
Thanks for advanced.
marcas wrote in message said:#include <cmath> // C++
#include <iostream>
using namespace std;
int pow (int b, int p) {
return (int) pow ((double)b,(double)p); // brutal
}
????? paren's in wrong place? C style cast in C++ pgm?
int pow(int b, int p){
return int( pow(double( b ), double( p ) ) ); // brutal + brutal
}
<G>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.