ive been googleing this all day and havent found an answer yet.
i want to create an array in int Main() and then pass a pointer referencing the
array to a function to fill it.
This is how far i have gotten:
other code her
void readnprint(float *base_ptr)
//init ifstream etc etc..
if(from_string<float>(f, string(x), dec)) //parse float?
addr=(base_ptr)+(sizeof(float)*cnt) //steps through array by sizeof(float)
*(float)addr=f; //have this assign the value to memory location (problem)
cout << "from_string failed" << endl;
im sure im just tired and not thinking right, does anyone have a better/working way of doing this?