ciao a tutti
avrei un problema nel richiamare una funzione che ha come argomento un Array
facci un esempio:
ma mi da errore dicendo che non riesce a convertire da float a floatcodice:#include <iostream> using namespace std; void Prob(float *Array) { float P[9]; float Somma; int x; Somma=10000; for (x=0;x<9;x++) P[x]=Array[x]/Somma; } int main() { float Array[]={1000,2000,2000,500,1500,0,1000,1000,1000}; float P[9]; int x; for (x=0;x<9;x++) { P[x]=Prob(*Array); cout<<P[x]<<endl; } }
come posso fare?
grazie

Rispondi quotando