Execute a program from a given file.

Calling:

double dret = run_cpp("run_from_file",string sFileNameAndPath,int arg1,double arg2,string arg3);


Here:

sFileNameAndPath -the name and full path of the program file to be executed.

arg1, arg2 и arg3 - arguments with which the program will be executed (in it you can consider them with the get_args function).

The result returned by dret corresponds to the number given by the return command in the program file that is being run here.

Example.

Execute the program from the file "c:\my_program.cpp" and pass the integer 100 into it.

int myintvar = 100;
double dret = run_cpp("run_from_file","c:\my_program.cpp",myintvar,0,"");