I thank you very much sir, "Alpha".
My code had the problem after all. I managed and fixed it. I realized after you said it was my code problem.
I am sorry for putting such a question at the wrong place, I am relatively new to c++ and I code out of hobby and just some math curiosities that I have with numbers.