收起
用log(x)/log(b)即可
#include <stdio.h> #include <math.h> int main() { int b; double x; printf("%.6lf",log(x)/log(b)); return 0; }
报告相同问题?