warning: character constant too long for its type

Hi, I keep getting the "warning: character too long for its type". I'm guessing it has something to do with my int variables, but idk why.

The code is:


#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
int plmoney='10000000',plpop='20000000',plmor='100',menu='0',choice;


while(menu=='0')
{
cout<<"Welcome to the wonderful game of World Domination.\n\nIf this is your first time playing, press 1 to see full instructions.\nIf not, press 2 to dominate some countries!!"<<endl;
cin>>choice;


system("pause");
}

return 0;
}
don't put numbers in 'single quote's. single quotes are for characters only, not numeric types.

1
2
int foo = 1000;  // good
int foo = '1000';  // bad 
Oh wow, thanks.
Topic archived. No new replies allowed.