예제 입니다. 참고하세요..
#include <stdio.h>
#include <stdlib.h>
char str[12] = "5111.1111110";
char *ptr;
double ret;
ret = strtod(str, &ptr);
박용우 님이 쓰신 글 :
: 변수 4개를 더블형으로 선언 했거든요.....
:
: tmpOpen = ListBox2->Items->Strings[0];
: tmpClose = ListBox2->Items->Strings[3];
: tmpHigh = ListBox2->Items->Strings[1];
: tmpLow = ListBox2->Items->Strings[2];
:
:
: 근데요... 리스트박스에 아이템은 AnsiString 타입 이잖아요...
: 스트링을 더블로 바꾸고 싶은데...
: help에 보니까.....StrToInt 도 있고 StrToFloat 도 있는데...
: 왜 StrToDouble 는 없나요....
:
: 이상 왕초보의 질문 이었습니다...
: 고수님의 답변 부탁할게요
:
:
:
:
|