출처 http://skorea.tistory.com/tag/itoa()

문자 -> 숫자 변환 함수 : atoi()
숫자 -> 문자 변환 함수 : itoa()

헤더파일 : <stdlib.h>

int a = atoi(문자열 / char * 형 변수)

itoa(int형 변수, chat *형변수, 진법(ex. 10))


CString을 이용해서 숫자를 문자로 변화





strings to dobule : atof()

double atof(const char * string)


strings to integer : atoi(), _atoi64()

int atoi(const char * string)
__int64 _atoi64(const char* string)


strings to long : atol()

long atol(const char * string)



 

저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License

'C & C++ 관련' 카테고리의 다른 글

__attribute__((section (section_name));  (0) 2008/12/30
숫자와 문자 사이 형 변환  (2) 2008/12/28
popen, fread  (0) 2008/11/30
fprintf연습(표준에러_표준출력)  (0) 2008/11/03
Posted by Real_G