摘要: int main(){ Line line(10.0); cout<<" "<<line.getLength()<<endl; line.setLength(6.0); cout<<" "<<line.getLength()<<endl; return 0;};注意主函数中需先声明line,类型为L 阅读全文
posted @ 2019-09-07 22:17 柠檬味呀 阅读(218) 评论(0) 推荐(0) 编辑