Thank you all for your input, but the prof changed me all around and get rid of my globals, making me pass everything. Now I get a heap corruption error which I started in a new thread

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.