View Single Post
Old May 6th, 2007, 6:47 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
First of all, a loop can do that. Secondly, your explanation still isn't very complete.

You say if will find xx first, then look at the next. If it finds xx it doesn't (does that mean, "isn't supposed to"?) do anything.

You don't mention what it should do if it isn't xx. Use it? Take off and find the next xx? What do you want to do, and why is xx involved?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote