Well, since kTwo is a constant with zero assigned to it, the (kZero > 0) clause will always be false. Thus, kTwo will always be assigned 0. Just set it to zero and the problem will probably go away ...
Some books say it is unnecessary to add const to non-pointer/reference/array parameters, and advise learning programmers not to do so. But I like functino-headers ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results