for (int x=100;x<999;++x)
{
int y=x;
int baiwei=y/100; shouwei(baiwei)=baiwei*baiwei*baiwei;
y%=100;
int shiwei=y/10;
shiwei=shiwei*shiwei*shiwei;
y%=10;
int gewei=y;
gewei=gewei*gewei*gewei;
if (shouwei+shiwei+gewei==x)
{
cout<<x<<endl;
为什么把baiwei改成其他的就不行了呢?