PDA

Visualizza la versione completa : [C++] pow(float,float)


starcraftworld
23-02-2009, 21:06
Errore: `pow' undeclared (first use this function).
Compilatore: Mingw.

static std::vector<double> pow16s;
void preppow16(int digits) throw() {
pow16s.resize(digits+101);
for(int n=-100; n<=digits; n++)
pow16s[n+100]=pow(16.0, n);
}

MItaly
23-02-2009, 21:25
#include <cmath>
using namespace std;

Loading