摘要:
实现思路:读ini文件,用嵌套map存解析所得数据。保存时,再遍历嵌套map写入文件。接口: string ReadString(string section, string key, string def); void WriteString(string section, string key, string value);代码:头文件:View Code #ifndef LINIFILE_H#define LINIFILE_H#include <map>#include <string>using namespace std;class IniFile{ type 阅读全文