소연의_개발일지
Published 2023. 12. 4. 13:12
[C++]Cstring double로 변경 개발공부/C++

Cstring double로 변경하기

 

멀티바이트 환경 

atof() 사용

 


CString thestring("13.37");
double d = atof(thestring).

 

유니코드 환경

 _wtof() 사용

CString thestring(L"13.37");
double d = _wtof(thestring).

 

 

profile

소연의_개발일지

@ssoyxon

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!