Hi everyone. I'm very very new to programing. I am trying to write a simple program in attempts to test a few things, namely comparing user input text, and the if function. Sadly i'm not understanding either one.
#include <iostream>
usingnamespace std;
char USname [10], TBP [5];
int main()
{
cout << "Hi, What's your name? \n";
cin >> USname;
cout << "Hi " << USname << " my name is Navi. It's good to meet you. \n\n";
cout << "Are you bothered by me being a text based program? \n\n";
cin >> TBP;
if (TBP == "yes")
{
cout << "about time!!!!";
}
}