Is Your problem:
Finding the correct algorithm?
Or is it writing a correct program to follow your algorithm?
Can you explain the algorithm you are trying to program? What are the steps you need to take to solve the problem?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Can you edit your post and wrap the code in code tags to preserve the formatting.
The posted code is hard to read.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656