标签:style nbsp div absolute 字符 字符串转数字 string 转换 font
# 数字转字符串
1 int a; 2 string res; 3 stringstream ss; //定义流ss 4 ss << a; //将数字a转化成流ss 5 ss >> res; //将流ss转化成字符串 6 return 0;
# 字符串转数字
1 double a; 2 string res= "123.32"; 3 stringstream ss; 4 ss << res; 5 ss >> a; 6 return 0;
标签:style nbsp div absolute 字符 字符串转数字 string 转换 font
原文地址:https://www.cnblogs.com/hhyx/p/12424125.html