改错问题,无论输入什么都是3.14,这里需要怎么改,最好有个示范。
面积函数里,应该是这么写:double area(double redius) { return radius*radius*M_PI; }
其它几个函数也是相应的公式。