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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.