Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于我正在制作的程序,我需要符号的幂,但是当我尝试使用通用符号(^)时,它无法识别?
谁能告诉我用什么符号代替?
没有战俘符号。使用 C 函数 pow(x,y);
double res = pow(5.0,2.0); //25
BSD 库函数手册
名称: pow -- 幂函数
概要:
#include <math.h> double pow(double x, double y);
使用“pow”功能。pow(4,3)给你四的三次方。
pow(4,3)