Strings

Hi guys,
I'm currently writing a program for my girlfriend. I'm aiming at a very user friendly program, but I'm not 100% confident with strings, so I'm going to write up a section from my code and if someone could tell me how to fix it that would be awesome.
The problem is I'm not sure how to say if the string input says natalie continue on, but if it says anything else then close.
{
string responce;
string natalie=natalie;
cout<<"What is your name?"<<endl;
cin>>responce;
if(responce !=natalie)
{
cout<<"Sorry this program is not made for you";
Sleep(5000);
return 0;
}
else
{
cout<<"Oh Hi natalie"<<endl;
}
}
Thanks heaps guys.
string natalie=natalie should be string natalie="natalie", for string values should have quotation marks around them.
Thanks heaps dude, easy as that :D
Topic archived. No new replies allowed.