here is my script:
#include <iostream>
#include <cmath>
int main()
{
using namespace std;
int who;
cout << "how are you today? good, bad, or eh?" << endl;
cin >> who;
if (who == "good")
{
cout << "ahh thats pretty cool i guess..." << endl;
}
if (who == "bad")
{
cout << "LOL that sucks for you!!!!" << endl;
}
if (who == "eh")
{
cout << "EHHHHHHHHHHHHH!!!" << endl;
}
else
{
cout << "i dont know what that means? close and retry please..." << endl;
}
cout << "god im so bored" << endl;
cout << endl;
system("pause")
return 0;
}
i get an error :
ISO C++ forbids comparision between pointer and integer
how do i fix this? and what is actually causing this and why is it like that?
also im just starting out in codeing and wanted to know if there was a way i can make it so i can run it in anything besides CMD.
like if i could make it so when someone clicks on it , it opens up in like a window that i choose or something then it has buttons where it has the different types of code i put in there...
any help will be appreciated.
thanks.