string toString(int num) {
string res = "";
while (num) {
res += (num % 10 + '0');
num /= 10
C++整型转字符串
最新推荐文章于 2024-06-20 10:45:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
string toString(int num) {
string res = "";
while (num) {
res += (num % 10 + '0');
num /= 10