主体代码
CString str1,str2;
float m[5]={1.0,5.6,9.8,8,3.8};
str1.Format(_T("%0.1lf "),m[0]);
for(int i=1;i<5;i++)
    str1+=str2.Format(_T("%0.1lf "),m[i]);//此处报错
MessageBox(str1);