摘要: 00 阅读全文
posted @ 2023-09-26 09:13 秃头的小白 阅读(13) 评论(0) 推荐(0)
摘要: 访问者模式 [实验任务一]:打包员 在我们课堂上的“购物车”的例子中,增加一个新的访问者:打包员,负责对购物车中货物装包。 实验要求: 1. 提交源代码,不要提交类图; #include <iostream> #include <vector> using namespace std; class 阅读全文
posted @ 2023-09-26 09:13 秃头的小白 阅读(18) 评论(0) 推荐(0)