📜  c++ int to string - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:48.855000             🧑  作者: Mango

代码示例6
#include
#include
using namespace std;

int main()
{

   int a=12;                      // a is int data type.
   string str = to_string(a);    // now a become string.
   
   return 0;
}