Hi! I have exactly two problems with my program. I need it to stop at the end of file but have it go up to 15 if needed. Also I need to use a boolean function to check if the input is a id number or a grade.
- You can put the whole thing in a loop. If you need to go up, just start the loopagain with 'continue' else break the loop.
1 2 3 4 5 6 7 8 9 10
do
{
//do some work here.
if(need to go up)
continue;
elsebreak;
}while(1);
for number or grade.
when you read it from the file (I think strings are read), check if its a alphabet using isalpha() function; Otherwise, check each character if it lies between '0' and '9', if it does, convert it to a number using atol/atoi.