Hi guys.
I am new to C++ programming, and i would like a bit of help. My compiler is saying that "m" is 'not declared in this scope'in this code:
Code:
#include <iostream>#include <math.h>
using namespace std;
int main() {
cout<<"you stand in a clearing in the forest, North of you is a house with an open letterbox in front of it and a locked gate beside said letterbox. To the South and West are a mass of brambles. To the East is a path through the trees.\n";
cin.get();
char a;
{cin>>a;
cin.ignore();
if (a==m);{
cout<< "yes";}
cin.get();
}
}
Where have i gone wrong?