Any expression which evaluates to true or false can be used as a loop exit condition.
How can I set up a loop exit condition without using digits (in C++)?
Use letters?
for (char ch='a';ch%26lt;'z';ch++)
cout %26lt;%26lt; ch;
Reply:while (K%26lt;'a'||k%26gt;'z') {
k=getch();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment