char x[20];
double y;
memset(x, 0x0, 20);
strcpy(x, "234.789");
y <=== x 를 넣으려고 합니다.
atoi, atoll 같은 류의 함수가 있나요?
double y = atof("234.789");
atof 라는 함수가 있긴 합니다만 strtod 함수의 사용을 권해드립니다.
------------------------------------------------------------------------------- It's better to appear stupid and ask question than to be silent and remain stupid.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
double y = atof("234.789");
double y = atof("234.789");
atof 라는 함수가 있긴 합니다만 strtod 함수의 사용을 권해드립니
atof 라는 함수가 있긴 합니다만 strtod 함수의 사용을 권해드립니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
댓글 달기