1.string类


string类型和数值的转换
※数值→字符串
to_string函数
//具体做法
int i=1234;
string g=to_string(i);//这样就转成字符串1234了
//下面就是字符串转为数字,类似下面还有stof,stoi,stod
string d = "1289347647";
int j = stoi(d);
cout << j;
string怎样输入输出呢?
如果用scanf就必须要转成字符数组之后再输入
好麻烦而且我一直错
http://t.csdnimg.cn/elFx7














![【sgCreateTableData】自定义小工具:敏捷开发→自动化生成表格列数据数组[基于el-table]](https://img-blog.csdnimg.cn/direct/6aba114194844c62b8bf03cba32ba571.gif)



