![]() |
simple while loop
Hi there
I am writing a simple while loop which terminates on the condition that a certain value is found, as follows Code:
std::string question = q.quest().que();The program gets stuck in the while loop. I guess this is some sort of error in the while loops condition. If I take out the second condition and make it just based upon “English1”, then it works fine. Any help? Thanks in advance |
Re: simple while loop
wrong logic!!!
|
Re: simple while loop
Code:
while((answer != english1) || (answer != english2))let answer != english1 is X and answer != english2 is Y Code:
Possible combinationTRy to change you while loop test condition Regards |
| All times are GMT +5.5. The time now is 18:11. |