摘要: ~~**课程成绩统计程序系列分析**~~ > 博客采取总——分模式 # 总体分析: 1.最终设计类图: ![image](https://img2023.cnblogs.com/blog/3159110/202306/3159110-20230623173748318-1934917118.png) 阅读全文
posted @ 2023-06-23 19:19 Pattrick-Star 阅读(176) 评论(0) 推荐(0)
摘要: 菜单计价程序—4 一丶错误分析: 1.这一题的测试点很多,在做的时候没有理清逻辑,导致在解决了部分测试点后,当尝试通过剩余测试点时,总会影响到之前的测试点通过。 2.对于格式处理时单一的通过·split空格,判断共有几段字符串。后改为正则表达式,但正则表达式规则写的太松。事实上正则表达式没起到什么筛 阅读全文
posted @ 2023-05-16 22:19 Pattrick-Star 阅读(53) 评论(0) 推荐(0)
摘要: 菜单计价程序-1 一丶代码: 1.菜品类 点击查看代码 class Dish{ String name; int unit_prince; int getPrice(int portion){ int peic = 0; switch(portion){ case 1: peic=(int)unit 阅读全文
posted @ 2023-04-01 15:23 Pattrick-Star 阅读(623) 评论(0) 推荐(0)