c++ atoi 로 문자를 숫자형으로 변환 컨버트하기

2010.05.27 10:31 개발언어/C++
Converts a given string to an integer.
문자를 숫자형으로 컨버트하여 준다.

atoi

Converts a given string to an integer.

int WINAPI atoi(
const TCHAR *sz);

Parameters

sz
Source character string.

Return Values

Returns the string's integer value.

Remarks

This version of atoi supports only decimal digits, and does not allow leading white space or signs. It supports both Unicode and ANSI strings. Other versions can vary.

신고