ciao a tutti
avrei un problema nel richiamare una funzione che ha come argomento un Array
facci un esempio:
codice:
#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;
}
}
ma mi da errore dicendo che non riesce a convertire da float a float
come posso fare?
grazie