Originally Posted by
Hodor
Given the flowchart I'm not surprised that you're having trouble implementing it.
What's it supposed to do? Who made the drawing/flowchart?
Aside from mystery of the flowchart (incrementing (*pointer)... really?), I have the following questions:
Maybe the first step is to fix the flowchart. After that get your skeleton code to at least compile (and make sense... 1 can never equal 0 for a start). I don't think it's wise to proceed before you do these things and answer the above questions