close

個人覺得比 itoa 還來的簡單、方便


範例:
#include
#include
#include
using namespace std;

int main () {

stringstream oss;
string mystr;

oss mystr=oss.str();

cout
return 0;
}

參考網站

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JohnDX 的頭像
    JohnDX

    我要回家想一想~

    JohnDX 發表在 痞客邦 留言(0) 人氣()