0
,所以我有这样的代码目标C使用字符的字符串()
char processName[50] = {0}; // init all to 0
printf("Enter the process to kill: ");
scanf("%s", processName); // read and format into the str buffer
printf("Attempting to kill %s\n", processName); // print buffer
system("killall %s", processName);
把这个导致错误“太多的参数函数‘系统’”
谢谢你,正是我一直在寻找 – xump