I get this error: \"invalid operands of types \'const char*\' and \'const char [6]\' to binary \'operator+\'\" when i try to compile my script. Here should be the error:
The system function requires const char *, and your expression is of the type std::string. You should write
std::string
string name = "john"; string system_str = " quickscan.exe resolution 300 selectscanner jpg showui showprogress filename '"+name+".jpg'"; system(system_str.c_str ());