这里会显示出您选择的修订版和当前版本之间的差别。
前一修订版 | |||
— | reference:language:square [2023/06/07 04:23] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== square() ====== | ||
+ | ===== 例子 ===== | ||
+ | <code cpp> | ||
+ | double c = square(3.5); | ||
+ | double d = square(4.5); | ||
+ | </ | ||
+ | ==== 描述 ==== | ||
+ | square()返回 x*x (x 是浮点型). | ||
+ | === Syntax === | ||
+ | |||
+ | square(x) | ||
+ | === 参数 === | ||
+ | |||
+ | x double, float or int | ||
+ | |||
+ | y double, float or int | ||
+ | |||
+ | 返回 double |