I would do a search of the daniweb c++ forum and find this problem discussed many, many times.
( I wish profs would be a bit more creative and come up with some new assignments.)
Reputation Points: 1268
Solved Threads: 228
Posting Virtuoso
Offline 1,895 posts
since Aug 2007