700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > c语言atof函数_atof()函数与C ++中的示例

c语言atof函数_atof()函数与C ++中的示例

时间:2022-07-20 13:57:05

相关推荐

c语言atof函数_atof()函数与C ++中的示例

c语言atof函数

C ++ atof()函数 (C++ atof() function)

atof() functionis a library function ofcstdlibheader. It is used to convert the given string value to the double value. It accepts a string containing a floating-point number and returns its double value.

atof()函数是cstdlib标头的库函数。 它用于将给定的字符串值转换为双精度值。 它接受包含浮点数的字符串,并返回其双精度值。

Syntax of atof() function:

atof()函数的语法:

C++11:

C ++ 11:

double atof (const char* str);

Parameter(s):

参数:

str – represents a string containing a floating-point number.

str –表示包含浮

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。