2011年7月21日

摘要: 在VS里面写如下代码,实现两个数的相加并且显示结果: int num1,num2,num3; char ch1[10],ch2[10],ch3[10]; GetDlgItem(IDC_EDIT1)->GetWindowText(ch1,10); GetDlgItem(IDC_EDIT2)->GetWindowText(ch2,10); num1=atoi(ch1); num2=atoi(ch2); num3=num1+num2; itoa(num3,ch3,10); GetDlgItem(IDC_EDIT3)->SetWindowText(... 阅读全文
posted @ 2011-07-21 09:28 江南烟雨hust 阅读(1437) 评论(0) 推荐(1)

导航