调用的时候 用的是
smaller_than_zero
定义的时候是
smaller_to_zero
所以 把最后一个函数 改成
void smaller_than_zero(float a,float b){ p=-b/(2*a); q=sqrt(-disc)/(2*a);}
编译就ok了