mfc结果在编辑框中输出错误
void CMy89Dlg::OnButton1() {
int A[3][3],B[3][3],C[3][3],a[10],b[10],c[9],i=0,j=0,s;
char c1[10],c2[10],c3[10];
GetDlgItemText(IDC_EDIT1,c1,10);
GetDlgItemText(IDC_EDIT2,c2,10);
char *cc1=strtok(c1," ");
while(cc1!=NULL)
{
a[i]=atoi(cc1);
i++;
cc1=strtok(NULL," ");
}
char *cc2=strtok(c2," ");
while(cc2!=NULL)
{
b[j]=atoi(cc2);
j++;
cc2=strtok(NULL," ");
}
for(i=0;i<9;i++)
{
A[i/3][i%3]=a[i];
B[i/3][i%3]=b[i];
}
int n=0;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
C[i][j]=0;
for(s=0;s<3;s++)
{
C[i][j]=C[i][j]+A[i][s]*B[s][j];
}
c[n]=C[i][j];
n++;
}
}
for(i=0;i<9;i++)
{
SetDlgItemInt(IDC_EDIT3,c);
cout<<" ";
if(i%3==0) cout<<"\n";
}
}
提示“error C2664: 'SetDlgItemInt' : cannot convert parameter 2 from 'int [9]' to 'unsigned int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast