this runs but with unexpected results,why?I insist on using cin.getline
and I was hoping if statement will execute, however the else statement is da one dat executes.
As for the question I think the first answer is correct
cout <<"enter name"<<endl;
if (name == "My boy")
cout <<"Hello, My boy!"<<endl;
cout <<"Hello, My Girl"<<endl;