收起
其实没错……不过你在max那里返回值返回了个0,按照你的思路max改成这样
//printf自己加上去,主要看return的写法 int max(int a,int b) { if(a>b) return a; else return b; }
报告相同问题?