I have a problem with the IF statement can somebody help ?
// C++
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
void main()
{
char buffer[10];
char b;
cout << "\n\nType a word: " << endl;
cout << "\n:";
cin.getline(buffer, 10);
if(buffer == "hello")
cout << "The typed word is the same as the embeded word in this program.\n\n";
else
cout << "The typed word is not the same as the embeded word in this program.\n\n";
cout << "\nTyped word: " << buffer << endl;
cout << "\n\nEnter to Exit.\n";
cin.get(b);
}