개발/연구
UINT64 스트링으로 만들기
printf 형식 중에 unsigned int 형이 없어서 급하게 리커전으로 만든 것. CString GetNum( UINT64 target ) { if ( ( target / 10 ) < 1) { char nums[2]; itoa( target % 10, nums, 10 ); CString strNum = nums; return strNum; } else { char nums[2]; itoa (target % 10, nums, 10 ); CString result = GetNum( (UINT64) (target / 10) ); CString now = nums; result = result + now; return result; } }
2006. 9. 7. 12:04
최근 댓글