I'm currently using Visual Studio to practice C++, but I've noticed that within a Visual Studio "solution" if you have more than one .cpp file that contains a main() function, an error occurs when trying to run one of the .cpp files. As such, I was wondering if there are any IDEs out there that have similar functionality to a scripting language, where each .cpp file is completely separate from others and I can run each one as a stand-alone item without getting any IDE errors due to other .cpp files in the same solution having their own main() functions.
I think you confuse solutions with projects. A solution can have many different projects, where each project is totally independent.
A project can have only one file with main.