Originally posted by Dave Evans
You want to quit the loop when
(response == 'q') || (response == 'Q')
That means you want to continue as long as
(response != 'q') && (response != 'Q')
Fundamental boolean logic.
Try it.
Dave
I dont think it's a matter of boolean logic because it is not logic at all that he will write q and Q simultaneously
but i think he wrote on his code
Code:
while(response!='q'||response!='Q');
i suggest that he will replace it by
Code:
while((response!='q')||(response!='Q'));
or
Code:
while(!((response=='q')||(response=='Q')));
i am not sure anyway .. u might be right