For starters since you're trying to use the C++ iostream get rid of the .h's in your STL header includes. ie:
Code:
//this
#include <iostream.h>
//should be this
#include <iostream>
and put the following under your last include file listing:
Code:
using namespace std;
And to create a char array use:
Code:
char testcommand[10];
//or
char *testcommand;
But since you're using the STL for your input you may want to use strings for your text data, that way you can use your "==" check, which won't with a C char array (you'd have to use strcmp).
To do this try:
Code:
#include <iostream> //for cout/cin
#include <string> //for string
#include <stdlib.h> //for system()
using namespace std;
int main()
{
string testcommand;
cout<<"Welcome Please Type Hello";
cin>>testcommand;
if (testcommand=="Hello");
{
cout<<"I guess it works"<<endl;
}
else
{
cout<<"You didn't enter hello."<<endl;
}
system("PAUSE");
return 0;
}