经过修改之后的: #include double tmax(double x,double y,double z) { if(x>y) {if(x>z) return(x); else return (z);} else {if(y>z) return y; else return (z);} } void main() {double x,y,z; scanf("%lf,%lf,%lf",&x,&y,&z); printf("tmas is %f.\n",tmax(x,y,z)); } 无法正确的显示,是因为double函数的格式字符是lf,在输出的时候%f...
|