Post the code you've begun to develop, and please use code tags.
By posting your starting attempt, at least we can know whether you are using C or C++ since you didn't mention it.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314