本次实验用到了单例模式:
几种常用的设计模式介绍:https://blog.csdn.net/cto_1649900265/article/details/70666418
常见的几种单例模式:https://www.cnblogs.com/Ycheng/p/7169381.html
c++单例模式实现:https://www.cnblogs.com/cxjchen/p/3148582.html
注意在.cpp文件中添加
CConflg * CConflg::m_pConfig=new CConflg();//唯一的实例对象