Hello, I am doing a project for college lab that requires taking a random file with a bunch of numbers in it, ask the user what the filename is, and output the numbers until the console window is full. It is then supposed to pause the system and output the min, max, and average of the numbers on the window. The problem I am having is when counting the numbers to see if the system window is full, the if(count%20 = 0) has a error on the count dealing with a valid lvalue. Here is what I have so far (havne't put in the min, max, and average yet).
Thanks. I am also having a trouble with the output. When I run the program with a file that has say
348967
345345
345434
3454
454
453
4
45
45
4
3
45
43
45
as numbers in the file, the output is only grabbing the first number.