c++ help please?
my problem is system dose not like virables.. even tho i have command as char it dose not regester what iv typed iv used string system dose not like that heres the code.
there is int main but that bit is not important it works
sorted thanks to all :P
thanks Josh
Code:
#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;
}
sorted thanks to all :P
thanks Josh


