Hi, I'm trying to make a simple program that will take a command and run that system command, but am having a little trouble. Here's my code:
Does anyone know why this isn't working?Code:#include <iostream> using namespace std; int main() { string command; cout << "Please enter a system command: \n"; cin >> command; system(command); system("Pause"); return 0; }