Get out of a loop / goto:

Use an actual loop rather than 'goto'

http://www.cplusplus.com/doc/tutorial/control/

Then you can use the break keyword.