I have a bit of a problem with this:
The problem is: no matter what I type in, it prints out the else statement.Code:#include <iostream.h>
#include <string.h>
int main()
{
cout << "\nEnter a number: ";
char name[50];
cin.getline(name, 50, '\n');
strcmp(name, "Dean");
if (name == "Dean")
cout << "\nThat's my name too!";
else
cout << "\nThat's a nice name!";
return 0;
}