C++ int转string

不管是过去写的这个转换方法,仍是今天看到的这个:html string cvt2str( int x ) { int d = x; string ans = ""; while( x > 0 ) { d = x%10; ans = char(d+'0')+ans; x /= 10; } return a
相关文章
相关标签/搜索