Computer Science Canada Loops |
Author: | JWHooper [ Mon Feb 18, 2008 4:30 am ] |
Post subject: | Loops |
Currently, I know the while, do-while, and for loops for C++. Are there more loop function available in C++, if possible? |
Author: | michaelp [ Mon Feb 18, 2008 8:48 am ] |
Post subject: | RE:Loops |
Don't think so. |
Author: | OneOffDriveByPoster [ Mon Feb 18, 2008 9:35 am ] |
Post subject: | Re: Loops |
JWHooper @ Mon Feb 18, 2008 4:30 am wrote: Currently, I know the while, do-while, and for loops for C++. Are there more loop function available in C++, if possible? Do you need one? Or are you just interested? |
Author: | wtd [ Mon Feb 18, 2008 10:26 am ] |
Post subject: | RE:Loops |
You've covered it. Unless you count recursion. |
Author: | OneOffDriveByPoster [ Mon Feb 18, 2008 10:53 am ] |
Post subject: | Re: RE:Loops |
wtd @ Mon Feb 18, 2008 10:26 am wrote: You've covered it. Unless you count recursion. I think there is goto... |
Author: | Clayton [ Mon Feb 18, 2008 11:24 am ] |
Post subject: | Re: RE:Loops |
OneOffDriveByPoster @ Mon Feb 18, 2008 10:53 am wrote: wtd @ Mon Feb 18, 2008 10:26 am wrote: You've covered it. Unless you count recursion. I think there is goto...I shall never speak in your general direction again. |
Author: | JWHooper [ Mon Feb 18, 2008 3:54 pm ] |
Post subject: | Re: RE:Loops |
wtd @ Mon Feb 18, 2008 7:26 am wrote: You've covered it. Unless you count recursion.
Oh, okay. I was just making sure if I missed anything on loops. |
Author: | md [ Mon Feb 18, 2008 6:58 pm ] |
Post subject: | RE:Loops |
Actually C/C++ does do goto, and it's actually pretty useful for a very limited set of cases. Really though that's it for loops; and it's really all you ever need. |
Author: | JWHooper [ Mon Feb 18, 2008 7:15 pm ] |
Post subject: | Re: RE:Loops |
md @ Mon Feb 18, 2008 3:58 pm wrote: Actually C/C++ does do goto, and it's actually pretty useful for a very limited set of cases.
Really though that's it for loops; and it's really all you ever need. Thanks for the help! j. |
Author: | wtd [ Tue Feb 19, 2008 11:18 am ] |
Post subject: | Re: RE:Loops |
md @ Tue Feb 19, 2008 7:58 am wrote: Actually C/C++ does do goto, and it's actually pretty useful for a very limited set of cases.
Really though that's it for loops; and it's really all you ever need. A for-each loop would be nice... |