Line 7 is a declaration and corresponds to the definition on line 18. You have another definition on line 37. You can either move the definition to an earlier point in the file, or you can create a corresponding declaration at an earlier point in the file.
void readFromFiletoArray(ifstream &infile, int theArray[], int &arrayCount);
void printArray(ifstream &fileinput, int array[], int &count);
constint SIZE = 30;
int main(ifstream &infile, int anArray[], int &numCount)
{
printArray(infile, anArray, numCount);
return 0;
}
But, and I've never seen this before, whenever I try to run it, the cmd pops up, but the windows diagnostic screen that says "title.exe has stopped working." also pops up.
Well generally, if you start debugging from the crash, you can see the values of all the variables to figure out why it crashed.
If you set a breakpoint a few lines before the crash you can step through the code one line at a time and figure out which lines are doing what changes.