it keeps saying theres an error on line 17,
it says:
"no match for 'operator!=' in 'a != password'"
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
string password;
cout << "Type in a password: ";
cin >> password;
char a;
a = 'A';
cout << a;
if (a != password)
{
cout << "\tFailed\n";
a = 'B';
}
else
{
cout << "\tSuccess!!!";
system ("PAUSE");
return 0;
}
system ("PAUSE");
return 0;
}