cout << "Enter the filename " << endl;
cin >> filename;
inFile.open(filename);
int length = 0;
while (inFile)
length++;
IntStack stack(length);
I keep getting an error and I have no idea why. Can someone explain what is going on with it? After I input the the filename, program terminates. My best guess is that my while loop is wrong or the file is empty...