在线求解
  • 板块灌水区
  • 楼主xiaoxiaotuan
  • 当前回复2
  • 已保存回复2
  • 发布时间2024/9/21 13:40
  • 上次更新2024/9/21 13:42:56
查看原帖
在线求解
1049689
xiaoxiaotuan楼主2024/9/21 13:40
#include <iostream>
#include <cstdio>

using namespace std;

double quick_power(double x, unsigned n) {
    if (n == 0) return 1;
    if (n == 1) return x;
    return quick_power(x, n / 2)
        * quick_power(x, n / 2)
        * ((n & 1) ? x : 1);
}


return 后面的是什么语法??

2024/9/21 13:40
加载中...