递归方式实现打印一个整数的每一位

    xiaoxiao2022-07-13  130

    void PrintNum(int n){ if (n > 9) PrintNum(n / 10); cout << n % 10 << ' '; }
    最新回复(0)