hello people i started a if and else program but my compiler didnt compile it heres the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
#include <string>
usingnamespace std;
int main ()
{
string bot;
string tob;
cout << "What letter is this? >> a" <<endl;
getline (cin, bot);
if (bot == a)
cout << "YES CORRECT!" << endl;
elseif (bot == b)
cout << "hrrrr WRONG WHAT AN IDIOT!" << endl;
system("pause");
return 0;
}
can someone help me it said something about leaving A and B undeclared i dont understand..