初学求解
string 是系统关键字,换个名字。然后函数里:if(x>=y) return sqrt(x-y);else return 0;
兄弟,你把sqrt(x-y)改成 return sqrt(x-y)试试
函数名字建议换一个 不要和string一样,可能会有冲突