c ++atoi函数
C ++ atoi()函数 (C++ atoi() function)
atoi() function is a library function of cstdlib header. It is used to convert the given string value to the integer value. It accepts a string containing an integer (integral) number and returns its integer value.
atoi()函数是cstdlib标头的库函数。 它用于将给定的字符串值转换为整数值。 它接受包含整数(整数)的字符串,并返回其整数值。
Syntax of atoi() function:
atoi()函数的语法:
C++11:
C ++ 11:
int atoi (const char * str);
Parameter(s):
参数:
str – represents a string containing an integer (integral) numbe