I am trying to run a program wiht characters and an else if ladder,
this is what i tried to run and it gave me an error of too many characters in constant.
What is wrong with it?
p.s. i am a new programmer, be gentle.
#include <iostream.h>
int main ()
{
char name;
cout<<"Enter your name:";
cin>>clas;
if (name == 'luke')
cout<<"hello"<<endl;
return 0;
}