資源簡介
觀察者模式 c++ 工程角度實現
代碼片段和文件信息
#include?“CBloger.h“
#include?“gloabal.h“
CBloger::CBloger()
{
SetClassTypeID(BLOG_READER);
}
CBloger::~CBloger()
{
}
void?CBloger::Publish(const?string?&strContent)
{
cout?<“bloger?Publish?:?“?< SetChanged();
Notify(const_cast(strContent.c_str()));
}
- 上一篇:鄰接表與鄰接矩陣互換代碼
- 下一篇:課設-學生繳費管理系統
評論
共有 條評論