请输入您要查询的百科知识:

 

词条 POW
释义

C语言中的数学函数:pow

原型:在TC2.0中原型为extern float pow(float x, float y); ,而在VC6.0中原型为double pow( double x, double y );

头文件:math.h

功能:计算x的y次幂。

返回值:x应大于零,返回幂指数的结果。

返回类型:double型,int,float会给与警告!

举例1:(在VC6.0中运行通过)

#include <math.h>

#include <stdio.h>

int main(void)

{

double x = 2.0, y = 3.0;

printf("%lf raised to %lf is %lf\", x, y, pow(x, y));

return 0;

}

举例2: (在TC2.0中运行通过)

// pow.c

#include <syslib.h>

#include <math.h>

main()

{

clrscr(); // clear screen

textmode(0x00); // 6 lines per LCD screen

printf("4^5=%f",pow(4.,5.));

getchar();

return 0;

}

漫画游戏及其他

爆炸的意思(漫画中经常被用到用于增加漫画的趣味性)

(爆炸声、枪声或打人的声音)嘭,乒,砰

战俘的英文缩写( prisoners of war. ) ,在某些游戏中(如拳皇)显示为能量槽POW。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/1 19:36:58