C语言函数库详解(收藏)
NULL:由实现环境定义的空指针。 2、struct lconv结构
该结构用于存储和表示当前locale的设置。其结构定义如下: struct lconv {
char *decimal_point; char *thousands_sep; char *grouping;
char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; };
3、函数
函数将一个 参数6)和locale指定。
在中定义了一些数学函数和宏,用来实现不同种类的数学运算。下面给出<math.h>中标准数学函数的函数定义及功能简介,见下表。 <math.h>中定义的函数 函数定义, 函数功能简介
double exp(double x);, 指数运算函数, 求e的x次幂函数 double log(double x), 对数函数ln(x) double log10(double x); , 对数函数log
double pow(double x, double y);, 指数函数(x的y次方) double sqrt(double x); , 计算平方根函数 double ceil(double x); , 向上舍入函数
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库C语言函数库详解(收藏)(7)在线全文阅读。
相关推荐: