include<stdlib.h>什么意思?

如题所述

#include<stdio.h>称为编译预处理命令。编译预处理命令还有很多,它们都以“#”开头,并且不用分号结尾,所以是c语言的程序语句。

在使用标准函数库中的输入输出函数时,编译系统要求程序提供有关的信息(例如对这些输入输出函数的声明),#include<stdio.h>的作用就是用来提供这些信息的,stdio是“standard input & output”的缩写,即有关标准输入输出的信息。

头文件<stdlib.h>中说明了用于数值转换、内存分配以及具有其他相似任务的函数。

1、atof

#include<stdlib.h>double atof(const char*str);把字符串str转换成double类型。等价于:strtod(str,(char**)NUL1)。

2、atoi

#include<stdlib.h>int atoi(const char*str);把字符串str转换成int类型。等价于:(int)strtol(str,(char**)NULL,10)。

3、atol

#include<stdlib.h>long atol(const char*str):把字符串str转换成long类型。等价于:strtol(str,(char**)NULL,10)。

4、strtod

#inelude<stdlib.h>double strtod(const char*start,char**end);

温馨提示:答案为网友推荐,仅供参考
相似回答