Yeah, generally in C(++) you need to be very careful in checking that any inputs you get are what you expect them to be or else very strange things can happen (like being put into an infinite loop, as it once happened to me when I was a little more naive in C++!).
Bookmarks