C++을 사용하다보면 문자열과 숫자의 변환을 할 일이 많습니다. 기본적으로는 대부분 하이레벨 숫자변환을 많이 사용합니다. // number to string string to_string(T val); // string to number int stoi(const string& str, size_t* idx=0, int base=10); long stol(const string& str, size_t* idx=0, int base=10); unsigned long stoul(const string& str, size_t* idx=0, int base=10); long long stoll(const string& str, size_t* idx=0, int base=10); unsigned long long stoull(const string& str, size_t* idx=0, int base=10); float stof(const string& str, size_t* idx=0); ...
원문 링크 : C++] 하이 레벨 숫자 변환과 로우 레벨 숫자 변환