Skip to content
Advertisement

Tag: break

Get out of a foreach [closed]

My C++ teacher once told me that if I have to use a break to get out of a loop I didn’t think enough about the loop condition. So did she (very good teacher btw) just fail to mention that foreach …

Advertisement