Compiler error or human error?
I am using Dev-C++ version 4.0 and I have some errors when I try to compiler this:
Code:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int testcommand;
cout<<"Welcome Please Type Hello";
cin>>testcommand;
if (testcommand=="Hello");
{
cout<<"I guess it works";
}
system("PAUSE");
return 0;
}
But then I tried this:
Code:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int testcommand;
cout<<"Welcome Please Type Hello";
cin>>testcommand;
if (testcommand==Hello);
{
cout<<"I guess it works";
}
system("PAUSE");
return 0;
}
Could any one give me some tips?
This is my first attemp at trying to make a game and I need to know about this before I start. Thanks in advance
Are any of you vivid gamers? Then go here
www.gamefaqs.com