#include <stdio.h> int fun{int x,int y} { if(x==y) return(x); else returen((

日期:2017-07-03 22:17:01 人气:1

#include <stdio.h> int fun{int x,int y} { if(x==y) return(x); else returen((

修改后的代码: #include int fun (int x,int y) /*是小括号,不是大括号*/{ if (x == y) /*括号换成英文的,下同*/ return(x); else return ((x + y)/2); /*是return,另外缺少分号*/ }int main(){ int a=4,b=5,c=6; printf("%d\n", f
    A+
热门评论