I am using dev c++ and i want to do something like this but it gives me errors(the error is about the strings and the if statement):
PHP Code:
#include <iostream.h>
int main()
{
cout<<"Guess a word thats about air"<<endl;
char word[] = "oxygen"; //the answer
char input[25]; //users guess
cin>>input;
if (input == word)
{
cout<<"Good Guess you got it right"<<endl;
}
}