原以為double _wtof(const wchar_t *str );可以很順利的實(shí)現(xiàn)轉(zhuǎn)換,結(jié)構(gòu)一編譯根本不行,錯(cuò)誤代碼 error C3861: '_wtof': identifier not found;在網(wǎng)上一看知道,CE不支持這個(gè)函數(shù),只能用int swscanf( const wchar_t *buffer,const wchar_t *format [, argument ]... );來實(shí)現(xiàn),第一個(gè)參數(shù)是字符串地址,第二個(gè)參數(shù)是轉(zhuǎn)換格式,最后則是將要把字符串轉(zhuǎn)換成的類型(如:浮點(diǎn),整形等)。