轉:把十六進位字元串轉成數字的函數-類似atoi(char *) - ivy-jie - C++博客

轉:把十六進位字元串轉成數字的函數-類似atoi(char *) - ivy-jie - C++博客

瀏覽:1355
日期:2024-07-26
1 使用中 int ahextoi( const char* hex_str) { int r =0; if(hex_str) sscanf(hex_str,"%x",&r); return r;} 2 沒試過 //將任意進位(2~36)的數轉換為10進位,參數step=16就是你想要的 unsigned long AToD(string dvalue,unsigned step/*2~36*/) { if(step 36 ......看更多