Welcome to the forum! Please read
this topic to learn how to post code correctly and other useful info for new members.
Please ask a specific question, not for an explanation that could go on for days. After you post the code correctly, you might run the code and then explain how you think the code should work and/or describe how what you thought would happen is not the same as what actually happens and ask why.
--- Update ---
Welcome to the forum! Please read
this topic to learn how to post code correctly and other useful info for new members.
Please ask a specific question, not for an explanation that could go on for days. After you post the code correctly, you might run the code and then explain how you think the code should work and/or describe how what you thought would happen is not the same as what actually happens and ask why.