编写函数double rect-area(double length,double width=0),