I use system to call an external excutable file with argument list.
string all = (excuteablePath + " " + inputDir + " " + outputDir + " " + spacing);
system(all.c_str());
The value of string all shown in IDE or with cout is
.\sample.exe .\孙夏^4735\UR7\ .\孙夏^4735\UR7.stl 0.3 0.3 0.3
but the output from the executable is
.\sample.exe .\孙夏4735\UR7\ .\孙夏4735\UR7.stl 0.3 0.3 0.3
The character ^ disappered.
Why is this happened and how may I solve this?