#include "iostream"
#include "windows.h"
#include "string"
using namespace std;
char command;
int num ;
while ( num == 1) {
num = 0;
cout << "Welcome what comand do you want to run? \n";
cin >> command ;
Sleep(50);
cout << "your command was \n " << command;
system( "color 4" + command );
system("pause");
return 0;
}
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
char command;
int num;
int main()
{
string command;
cout << "Welcome what comand do you want to run?" << endl;
cout << "Command: ";
cin >> command;
Sleep(500);
cout << "your command was " << command << "." << endl;
system("pause");
return 0;
}
