C++中数字转换成字符串

头文件:<string>

转换函数:to_string();

例如:int n=10;  string str=to_string(n) ;

 

posted @ 2017-12-14 09:32  西瓜刀刀刀  阅读(618)  评论(0编辑  收藏  举报