摘要: 软件设计模式 观察者模式: 当股票的价格上涨或下降5%时,会通知持有该股票的股民,当股民听到价格上涨的消息时会买股票,当价格下降时会大哭一场。 #include <iostream>#include <string>#include <vector>using namespace std;class 阅读全文
posted @ 2021-11-16 16:11 chenghaixinag 阅读(104) 评论(0) 推荐(0) 编辑