2020年8月7日

摘要: 原因分析: 通过查看代码发现C++程序在创建一个类的对象时报错了错误类型是Cannot allocate an object of abstract type“XXX”原因是我的类继承自一个基类,该基类中的函数存在纯虚函数,而我的类中没有重载全部纯虚函数。 解决方法:在基类中申明的虚函数,在派生类中 阅读全文
posted @ 2020-08-07 15:03 lydstory 阅读(606) 评论(0) 推荐(0)
摘要: CIniFile thini("./preconfig.ini"); string strip=""; string strport=""; strip=thini.readStr("server","ip"); strport=thini.readStr("server","port"); str 阅读全文
posted @ 2020-08-07 12:50 lydstory 阅读(477) 评论(0) 推荐(0)

导航