int main ()
char name ;
cout << "Please input your name: ";
cin >> name;
if (name == "Josh")
cout << "My name is josh also!";
cout << "We don't share the same name.";
That's my code, I'm using Borlands C++ Compiler.
How come it won't print "My name is josh also!" when I type in "Josh" in the actual program?
Thanks for your time,