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