给出一行代码:
string num=i+'0';
且i为int型,但是编译错误。 请问如可实现理想状态,即定义一个num且让其等于i转为字符串后的结果且num要为string类型
i
int
num
string