This is the second piece of code I have ever written don't seem to understand what I'm doing wrong. It seems to be going over my head as I have no prior knowledge of any programming language and have literally just begun. I have tried searching the issue to resolve it myself but have had no luck, other seem to look like mine (or not?). Anyway, any help would be appreciated.
Here's what I have:
#include <iostream>
using namespace std;
int main()
{
char Name;
cout << "Please input your name: ";
cin >> Name;
if ( Name == "Kyle A" )
{
cout << "Pass \n";
}
else if ( Name == "Mike C" )
{
cout << "Fail \n";
}
else
{
cout << "Wrong name!! \n";
}
return 0;
}