i've been using c++ for a while now, but I've never needed to use a single char variable. When I try to compare if a char equals a const character i get flagged for an error.
whats wrong with this code?PHP Code:
char choose = '';
cin.get(choose);
if (choose == 'x') || (choose == 'X')
{
.
.
.
}