error c2447_C语言问题 error C2086 error C2447

原问题:C语言问题 error C2086 error C2447
分类:编程开发 > 最后更新时间:【2017-04-14 21:24:17】
问题补充:

望好心人帮忙

最佳答案

原程序有些错误,如子函数定义和调用等。在原程序基础上,作了修改,下面是编译通过的程序:
#include<stdio.h>
#defineall_this_years_old71
inten();
inted();
intmain()
{
intresult_dad;
intresult_mom;
result_dad=ed();
result_mom=en();
printf("MomandDadthisyearand71yearsofage,aftermorethan10years,myfatherisolderthanhermother,askedhowmanyyearsoldthisyear,howmanyyearsoldmother?\n");
printf("dad=%d,mom=%d\n",result_dad,result_mom);
return0;
}
inted()
{
intresult_dad=(all_this_years_old+5)/2;
returnresult_dad;
}
inten()
{
intresult_mom=(all_this_years_old-5)/2;
returnresult_mom;
}
程序的运行结果如下:

最佳答案由网友  ygl990951  提供
公告: 为响应国家净网行动,部分内容已经删除,感谢网友理解。
7

分享到:

其他回答

其它网友回答:
我不知道呵呵

其它网友回答:
没有听说过

    推荐