函数的定义不能那样写吧?float func(x,y) { return(pow(x,y)) ; } scanf("%f,%f",&a,&b) ; 这个肯定有问题得写成2句: scanf("%f",&a); scanf("%f",&b); 还有调用d=func(c,d)时,c和d没有初始化。