to_string函数

功能:将int数字转换为string
使用:直接对int调用

  1. int N=1000;
  2. string str = to_string(N);