Posted on 2008-07-20 14:12
RichardHe 閱讀(189)
評(píng)論(1) 編輯 收藏 引用
開(kāi)始想在想把一個(gè)char變成string
但是沒(méi)有找到合適的方法,不過(guò)在網(wǎng)上看到其實(shí)它的解決方式
char ch = LastCode[4];// LastCode[4]表示一個(gè)字符數(shù)組中的一個(gè)字符
string lastChar;
lastChar.insert(lastChar.begin(), ch );