显示的是error C2660: “addint”: 函数不接受 2 个参数。我想输入两个长整数数字串求和(计算器)
voidCcalculate_1Dlg::OnBnClickedButton2(){NODE*inputint(),*addint(),*insert_after();C...
void Ccalculate_1Dlg::OnBnClickedButton2()
{
NODE *inputint(), *addint(), *insert_after();
CString strB,strA;
GetDlgItem(IDC_EDIT4)->GetWindowText(strB);
LPCTSTR s1=strB;
GetDlgItem(IDC_EDIT2)->GetWindowText(strA);
LPCTSTR s2=strA;
s=addint(s1,s2); /*求和*/
CString strC;
strC.Format(_T("node data %d"), s->data);
GetDlgItem(IDC_EDIT3)->SetWindowText(strC); 展开
{
NODE *inputint(), *addint(), *insert_after();
CString strB,strA;
GetDlgItem(IDC_EDIT4)->GetWindowText(strB);
LPCTSTR s1=strB;
GetDlgItem(IDC_EDIT2)->GetWindowText(strA);
LPCTSTR s2=strA;
s=addint(s1,s2); /*求和*/
CString strC;
strC.Format(_T("node data %d"), s->data);
GetDlgItem(IDC_EDIT3)->SetWindowText(strC); 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询