abs()fbs()

xiaoxiao2021-02-28  107

abs()//获得整型的绝对值,参数可以是字符相减得到整数

fbs()//用于浮点型的绝对值

GCC里面头文件为#include<math.h>

G++里面头文件为#include<cstdlib>

转载请注明原文地址: https://www.6miu.com/read-46137.html

最新回复(0)