ftf
I made the algorithm in 2 ways...one using static arrays and one dynamically alocated.the one with static arrays work just fine but the other one is crashing in a point(that i marked ).can you look upon the code and tell my if i do any mistake...I think the problem has something to do with memory accesing (so at least it says in the debbuger)