string toString(int num) {
string res = "";
while (num) {
res += (num % 10 + '0');
num /= 10
C++整型转字符串
最新推荐文章于 2022-03-19 19:45:46 发布
string toString(int num) {
string res = "";
while (num) {
res += (num % 10 + '0');
num /= 10