Tibiamakers
yourolist.com
I have got an array called espanol, I want to add in position [0] a 0.2 if in the cin the user writes 0 and 0 if writes 1, but don't know how to make reference between argument and the inputs, because this function have to be general for 30 different
don't know if I explained it well.. thanks
Code:
float espanol[5];
float 29 variables more like @up;
bool resultado;
int estadio(float [])
{
cout << "Juega en casa el " << "whatever" << "?" << endl;
cin >> resultado;
if (resultado == true){
[0] = {0.2};
}else{
[0] = {0};
}
return 0;
}
int main ()
{
estadio(español);
system("pause");
return 0;
}
don't know if I explained it well.. thanks