看你那么晚还在学习,帮你改一下:#include
;//函数参数不能用C语言的关键字longintmain(){intm_long;intm_width;intm_hight;intresult;printf("请输入长度\n")
;scanf("%d",&m_long)
;printf("请输入宽度\n")
;scanf("%d",&m_width)
;printf("请输入高度\n")
;scanf("%d",&m_hight)
;result=calculate(m_long,m_width,m_hight)
;printf("长方体的体积是")
;printf("%d\n",result)
;getchar();getchar()
;return0;
}intcalculate(intlng,intwidth,inthight)//这里的分号要去掉{intresult=lng*width*hight;returnresult;}