Is there a way to make it so that a C++ file wont close while it is running?

yes. add cin.get() just before returning form main().

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.