I am making a program, I am using alot of IF things--llke
IF (x==2)
and so on.
I need to know how to set a letter to an if--like
IF (x==L)
or something like that, I need to know how to assign a letter to a
variable.
I am making a program, I am using alot of IF things--llke
IF (x==2)
and so on.
I need to know how to set a letter to an if--like
IF (x==L)
or something like that, I need to know how to assign a letter to a
variable.
enclose the letter or symbol in single quotes
char ch;
if(ch == '*')
{cout << "sing starry starry night" << endl;}