Cin inside a function inside a process looping

Hi, I'n trying to do a simulation, I need to enter (cin ) floats like a,b,c,d,e,f,g. and use them in a function V which provides like 10.000 data. so know the program is looping... I think its going to ask me 10.000 time to cin the floats. but they are all the same for all those numbers. How do I make those floats a constant??
this is the code:

float data()
{
float a,b,c,d,e,f,g;
cout<<"ingrese a: "<<endl;
cin >> a;
cout<<"ingrese b: "<<endl;
cin >> b;
cout<<"ingrese c: "<<endl;
cin >> c;
cout<<"ingrese d: "<<endl;
cin >> d;
cout<<"ingrese e: "<<endl;
cin >> e;
cout<<"ingrese f: "<<endl;
cin >> f;
cout<<"ingrese g: "<<endl;
cin >> g;
//cout<<"blabla"<<a<<b<<c<<d<<e<<f<<g<<endl;
return a,b,c,d,e,f,g;
}

float FuncionV(int B1, int B2, int B3)
{
// local variable declaration
//float a=1.3, b=-0.01, c=0.08, d=-0.000003, e=0.000007, f=0.000005, g=0.2, result;

const float a,b,c,d,e,f,g;
float result;
data();
result=g+(a*B1+b*B2+c*B3+d*B1*B2+e*B1*B3+f*B2*B3);



return (result);
}

void Concentracion( int A1, int A2, int A3)
{
........
if ((count%n1)==0) {//abre if deltas
V=FuncionV(B1, B2, B3);//Uso de la FuncionV

outfile<<V<<endl;
timefile<<count*dt<<endl;

}//cierre ifs deltas
}// while

outfile.close();
timefile.close();



}//cierre del void




int main()
{

Concentracion(9000, 5000, 8000);




return 0;
}//main

please help... thanks
Registered users can post here. Sign in or register to post.