Possible Duplicate:
How do I properly compare strings in C?
#include <iostream>
using namespace std;
int main(){
char name[100];
cout<<"Enter: ";
cin>>name;
if(name == "hello"){
cout<<"Yes it works!";
}
return 0;
}
Why when I entered hello in the prompt i didnt got "Yes it works!" message?