#include <iostream>
using namespace std;
int main()
{
char a;
char b = "y";
char c = "n";
cout << "Am I a troll? (n/y)";
cin >> a;
if(a == b){
cout << "?????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????" << endl;
cout << "???????????????????????????????";
}
if(a == c){
cout << "D'aw";
}else{
cout << "Am I a troll? (n/y)";
cin >> a;
}
return 0;
}
I need help, what this program is meant to do is to ask if I'am a troll and if the answer == "y" then it will print out the ASCII troll face() and if the answer == "n" then it will print "D'aw" and if answer is anything else then it will ask again (I'm 99% sure that the else par I made is completly wrong so yeah, I'am a newbie in C++) BUT I get an error in line 8 and 9 or the lines with "char b = 'y' " and "char c = 'n' " it says "invalid conversion from 'const char*' to 'char'"