Hi friends,
I have written following program in C++, but when I tried to compile this program I get error : ISO C++ forbids comparison between pointer and integer message. I don't know what is that mean. Can anyone help me to fix this problem.
Code:
#include <iostream>
#include <cmath>
int main()
{
using namespace std;
int whos;
cout << "how was today? good, bad, or eh?" << endl;
cin >> whos;
if (whos == "goods")
{
cout << "also feel that one" << endl;
}
if (who == "bads")
{
cout << "it is bad news" << endl;
}
if (who == "eh")
{
cout << "Hello to all" << endl;
}
else
{
cout << "can you give me more information" << endl;
}
cout << "I am very lucky " << endl;
cout << endl;
system("pause")
return 0;
}
Bookmarks