以下是使用 C++语言解决此问题的代码: ```cpp #include <iostream> int main() { for (int num = 100; num <= 999; num++) { int hundreds = num / 100; int tens = (num % 100) / 10; int units = num % 10; int cubeSum = hundreds * hundreds * hundreds + tens * tens * tens + units * units * units; if (cubeSum == num) { std::cout << num << " "; } } return 0; } ``` [2024-10-14 20:46:56 | AI写代码神器 | 148点数解答]