二级C语言常用库函数.docVIP

  • 61
  • 0
  • 约4.9千字
  • 约 4页
  • 2017-06-08 发布于河南
  • 举报
二级C语言常用库函数

二级C语言常用库函数 二级C语言中,常用库函数可参考下面表格,具体使用方法可参考文件《C标准库函数集.pdf》,更多函数的用法可参考文件《C标准库函数集速查.chm》。 1数学函数 math.h 字符处理 ctype.h字符串处理 string.h 输入输出 stdio.h 实用工具程序 stdlib.h 函数类型 函数形式 功能 返回值类型 数学函数 abs int i 求整数的绝对值int fabs double x 返回浮点数的绝对值 double floor double x 向下舍入 double fmod double x, double y 计算x对y的模, 即x/y的余数 double exp double x 指数函数 double log double x 对数函数ln x double log10 double x 对数函数log double labs long n 取长整型绝对值 long modf double value, double *iptr 把数分为指数和尾数 double pow double x, double y 指数函数 x的y次方 double sqrt double x 计算平方根 double sin double x 正弦函数 double asin double x 反正弦函数 double sinh double x 双曲正弦函数 double cos double x ; 余弦函数 double acos double x 反余弦函数 double cosh double x 双曲余弦函数 double tan double x 正切函数 double atan double x 反正切函数 double tanh double x 双曲正切函数 double abs int i 求整数的绝对值int fabs double x 返回浮点数的绝对值 double floor double x 向下舍入 double fmod double x, double y 计算x对y的模, 即x/y的余数 double exp double x 指数函数 double log double x 对数函数ln x double log10 double x 对数函数log double labs long n 取长整型绝对值 long modf double value, double *iptr 把数分为指数和尾数 double pow double x, double y 指数函数 x的y次方 double sqrt double x 计算平方根 double sin double x 正弦函数 double asin double x 反正弦函数 double sinh double x 双曲正弦函数 double cos double x ; 余弦函数 double acos double x 反余弦函数 double cosh double x 双曲余弦函数 double tan double x 正切函数 double atan double x 反正切函数 double tanh double x 双曲正切函数 double ctype.h 函数类型 函数形式 功能 返回值类型 字符函数 isalpha int? ch ? 若ch是字母 A-Z,a-z 返回非0值,否则返回0 isalnum int? ch 若ch是字母 A-Z,a-z 或数字 0-9 返回非0值,否则返回0int? isascii int? ch 若ch是字符 ASCII码中的0-127 返回非0值,否则返回0int iscntrl int? ch 若ch是作废字符 0x7F 或普通控制字符 0x00-0x1F 返回非0值,否则返回0int? isdigit int? ch 若ch是数字 0-9 返回非0值,否则返回0int isgraph int? ch 若ch是可打印字符 不含空格 0x21-0x7E 返回非0值,否则返回0int islower int? ch 若ch是小写字母 a-z 返回非0值,否则返回0int isprint int? ch 若ch是可打印字符 含空格 0x20-0x7E 返回非0值,否则返回0 int ispunct int? ch 若ch是标点字符 0x00-0x1F 返回非0值,否则返回0int isspace int? ch  若ch是空格 ? ,水平制表符 \

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档