It is possible for c++ program to open and run another c++ program like in python using the function"execfile('filename.py')".
I know it is possible to compile the the c++ program to exe and the run the exe file using the function "system("start main.exe")". However, is there a method that would work for Windows, Linux and Mac without changing the code and without recompiling the files?