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);
}
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);
}
codice:#include <cmath> using namespace std;
Amaro C++, il gusto pieno dell'undefined behavior.