T
T
tapochek972014-12-22 07:02:55
Programming
tapochek97, 2014-12-22 07:02:55

Why does the loop skip iterations?

I can't figure out why on the second pass of the loop it skips values ​​between 0 and k. I understand that it’s hard to figure out my shit code, but maybe someone can help :)
Otherwise, the project is working correctly, it remains only to fix this problem, and my brain refuses to understand what is happening, it’s also not very clear from the debug, the key points slip through.
Many thanks in advance for your help
Link to the project on GitHub
2c8bf98ee1f34316b242cf75a07036cc.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sumor, 2014-12-22
@Sumor

Line 227
Usage[ i + Counter1]

A
Armenian Radio, 2014-12-22
@gbg

Your break is called on line 226. Psychics now take dollars for their work, so tell us what algorithm you are implementing at all.

X
xmoonlight, 2014-12-22
@xmoonlight

and if ++i is replaced by i++ is not better?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question