I have read about using 'goto' to get out of a 'while' loop, but it seems to be frowned upon in the C++ world.