c:\docume~1\owner\mark\untitl~1.cpp: In function `int main()':
c:\docume~1\owner\mark\untitl~1.cpp:7: ANSI C++ forbids comparison between pointer and integer
c:\docume~1\owner\mark\untitl~1.cpp:11: ANSI C++ forbids comparison between pointer and integer
code is this-
#include <iostream.h>
int main()
{
char thisisnotanumber;
cout<<"Am I bad ass?";
cin>>thisisnotanumber;
if(thisisnotanumber=="yes")
{
cout<<"Damn Straight!";
}
else if(thisisnotanumber=="no")
{
cout<<"Well you're wrong, I am bad ass.";
}
else
{
cout<<"It's a yes or no question genius.";
}
return 0;
}