How can I do this?

Started by
2 comments, last by JohnBolton 18 years, 11 months ago
instead of using while in a loop; do{ ... }while (a != 1) can i use something that means until, but not the word until if some compilers can use that. [Edited by - t5hoo6 on May 29, 2005 3:25:03 PM]
Advertisement
Hm 'until' and 'while' are complimentary words...
so: do ... while (x==1) and do...until(x!=1) are the same.

What I mean is: to use until just put in the complimetary term. :)
Uhhh.. I can't say I really understand what you mean.. It sounds kind of like a for loop, but honestly, I have no idea whta you are getting at. Perhaps you could come with a pseudo-code example of what you need?
Free speech for the living, dead men tell no tales,Your laughing finger will never point again...Omerta!Sing for me now!
If you are talking about C/C++, there is no "until", so you can safely do this:

#define UNTIL( condition ) while( !(condition) )
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!

This topic is closed to new replies.

Advertisement