64,282
社区成员
发帖
与我相关
我的任务
分享
string str1 = "abcdefg";
string str2 = "xyz";
int a = 45;
double b = 3.14;
char buffer[BUFSIZ];
sprintf(buffer, "%s %s %s %d %f",
"foo.exe", str1.c_str(), str2.c_str(), a, b);
system(buffer);