Hey guys, I'm creating a program that prompts the user to inputt the name of the process that they wish to end, but the problem is, the system("TASKKILL") function won't accept variables.
string cProcess; cout << "Enter the name of the process that you would wish to end" << endl; cin >> cProcess; system("TASKKILL " cProcess "/t"); //or something similar?
Anyone ever tried to do something similar before?
Any help would be greatly appreciated. :)