MFC中怎么把double型的数组转换成字符串形式?

如题所述

第1个回答  2013-02-19
const double pi = 3.1415;
CString str;
str.Format("%f",pi);本回答被提问者采纳
第2个回答  2013-02-19
double t = 0.35;
string str1 = t.ToString("f1");追问

如果t是数组怎么办?怎么把数组中的元素都转换成字符串形式,并存在另一个数组中?

追答

用上面那哥们的方法吧,tosting好像只能在c#中使用

相似回答