I understand arrays pretty well. It's combining one with an input file that confuses me.
Here is what I have so far:
void fill_array(int a[],int size, int& number_used)
{
int...
Type: Posts; User: chavezra
I understand arrays pretty well. It's combining one with an input file that confuses me.
Here is what I have so far:
void fill_array(int a[],int size, int& number_used)
{
int...
I don't quite understand how to get an input file to fill an array. It's part of a much bigger program, and I need this file (filled with 20 numbers) to be read in it's entirety (an eof?) to an array.