Jump to content
  • Advertisement
Sign in to follow this  
t5hoo6

How can I do this?

This topic is 4800 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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. :)

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
If you are talking about C/C++, there is no "until", so you can safely do this:

#define UNTIL( condition ) while( !(condition) )

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!