| BENB |
juju_le_barbare a écrit a écrit :
hello,
J'ai besoin d'avoir la puissance d'un nombre, j'ai donc fait un #include <math.h>,
puis lorsque j'utilise la fonction Power(5,3); //5^3, c'est bien ça ?
ça marche pas, le compilo dit fonction inconnue...
Quelle pourrait être le pb à votre avis ? :hello: VB :gun:
|
man pow ->
pow(3M) pow(3M)
NAME
pow(), powf() - power functions
SYNOPSIS
#include <math.h>
double pow(double x, double y);
float powf(float x, float y);
DESCRIPTION
The pow() function returns x**y. If x is negative, y must be an
integer value.
The powf() function is a float version of pow(); it takes float
arguments and returns a float result. To use this function, compile
either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE
options.
....
mais pour une puissance entiere tu as interet a code 5*5*5... |