I have this code to store data from an array;
cout << "What is the filename where the data is located?" << endl;
cin >> filename;
while(count < (N-1) && !data.eof())
data >> n[count];
cout << n[count];
My question is, how do I make this callable from another function so that the other function recieves the data uin the array?
Any help would be much appreciated.