任意输入一个3位数,判断其是不是水仙花数。水仙花数:各位数的立方和等于该数本身,如153=13 + 53 + 33 #include <iostream> using namespace std; void judge(int num); int main() { int num; cout