1.C语言如何翻译为中文?2.有翻译c语言的软件吗?3.有在线翻译c语言的吗?4.以下的c语言如何翻译?
{switch(id){caseIDC_OK:{CHARstr1[256];CHARstr2[256];GetDlgItemText(hwnd,IDC_EDIT1,str...
{
switch(id)
{
case IDC_OK:
{CHARstr1[256];
CHAR str2[256];
GetDlgItemText(hwnd,IDC_EDIT1,str1,sizeof(str1));
GetDlgItemText(hwnd,IDC_EDIT2,str2,sizeof(str2));
int i1=atoi(str1);
int i2=atoi(str2);
int i3=0;
HWND hwndCombo1=GetDlgItem(hwnd,IDC_COMBO1);
int curindex=ComboBox_GetCurSel(hwndCombo1);
switch(curindex)
{case 0:
{i3=i1+i2;} break;
case 1:
{i3=i1-i2;} break;
case 2:
{i3=i1*i2;} break;
case 3:
{i3=i1/i2;} break;
}
CHAR str3[256];
itoa(i3,str3,10);
SetDlgItemText(hwnd,IDC_EDIT3,str3);
}
break;
default:
break;
}
} 展开
switch(id)
{
case IDC_OK:
{CHARstr1[256];
CHAR str2[256];
GetDlgItemText(hwnd,IDC_EDIT1,str1,sizeof(str1));
GetDlgItemText(hwnd,IDC_EDIT2,str2,sizeof(str2));
int i1=atoi(str1);
int i2=atoi(str2);
int i3=0;
HWND hwndCombo1=GetDlgItem(hwnd,IDC_COMBO1);
int curindex=ComboBox_GetCurSel(hwndCombo1);
switch(curindex)
{case 0:
{i3=i1+i2;} break;
case 1:
{i3=i1-i2;} break;
case 2:
{i3=i1*i2;} break;
case 3:
{i3=i1/i2;} break;
}
CHAR str3[256];
itoa(i3,str3,10);
SetDlgItemText(hwnd,IDC_EDIT3,str3);
}
break;
default:
break;
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询