韌館-LearnHouse

Archive for 12 3 月, 2009

[C/C++]整數轉字串 不能用itoa ??

神奇了!!為什麼不能用itoa的函數呢??明明已經include stdio.h和stdlib.h

但還是找不到定義!! 不知道是否是因為WinCE上不提供這個API,只提供字串轉整數的atoi

由於我想把整數的值寫入文字檔,勢必要把值轉成字串才能寫入

google了一下,發現竟然有人自己寫itoa,不過我已經忘了我在哪看到的了

下面是itoa的function Read more...

2009年3 月 posted by admin in 程式&軟體 and have No Comments