#include#include#defineHinght10intcalculate(intLong,intWidth);/*runthisprogramusingtheconsolepauseroraddyourowngetch,system("pause")orinputloop*/intmain(intargc,char*argv[]){ intm-Long;/*编译时提示这里的m出错怎么回事?*/ intm-windth; intresult; printf("请输入长度:\n"); scanf("%d",&m-Long); printf("请输入宽度:\n"); scanf("%d",&m-Windth); intresult=calculate(m-Long,m-Width); printf("它的面积是:\n"); scanf("%d",result); return0;}intcalculate(intLong,nitWidth){ result=Hinght*Long*Width; returnresult;} |