I have a loop similar to this.
int total1, total2;
for (total1 = fsize(myfile);;) {
total2 = fsize(myfile);
...
...
total1 = total2;
}
What I would like to do is to convert this to a while
loop and check for an extra condition before ending the loop.
I would like to do something like this:
while((total1 = fsize(myfile)) && input = getch() != 'Q') {
total2 = fsize(myfile);
...
total1 = total2;
}
Thanks