declared a function prototype
void readNumbers(ifstream &, int, int);
called function inside main
int main()
{
readNumbers(inputFile, numbers[12], ARRAY_SIZE);
etc.......
}
outside of main stated function
void readNumbers(ifstream inputFile, int numbers[12], int ARRAY_SIZE)
{
etc.....
}
question, i have a feeling it has to do with ifstream &,
ithought since inputFile was a variable of type ifstream
that it would work,
which leads me to ask am i misunderstanding the operand sign ?
void readNumbers(ifstrean& inputFile, int numbers[12], arraySize)
{
// inputFile read the dat in the file, basiclly replaces cin
inputFile >> numbers
// .........
}