总是显示不出来..... 大家看看
#include <iostream>
using namespace std;
int main()
{
int i = 100;
int a, b, c;
a = i /100;
b = i /10 %10;
c = i %100;
do
{
if (a*a*a + b*b*b + c*c*c == i)
cout << i << " 是一个水仙花数. " << endl;
}
while (i<=999);
return 0;
}