>> was told that I might try writing programming "pearls
A common problem is to write a function that validates user integer input. It would get the value from the keyboard as a string then parse the string for illegal characters. If any illegal characters are found display an error message and ask for input again. Finally when no illegals are found convert the string to int and return the value.
Last edited by Ancient Dragon; Feb 16th, 2007 at 5:10 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,963 posts
since Aug 2005