• 大小: 9KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: C/C++
  • 标签: c++11  ini  

资源简介

标准C/C++读写配置文件类,读写ini文件,加入工程就可以用. 非常完美的封装类,利用SET容器储存,速度非常快。

资源截图

代码片段和文件信息

#include “stdafx.h“
#include “inifile.h“
#include 
#include 
#include 
#include 
// Only valid if C++
#ifndef __cplusplus
#error C++ compiler required.
#endif

// In the event you want to trace the calls can define _TRACE_CINIFILE
#ifdef _TRACE_CINIFILE
#define _CINIFILE_DEBUG
#endif

// _CRLF is used in the Save() function
// The class will read the correct data regardless of how the file linefeeds are defined  or 
// It is best to use the linefeed that is default to the system. This reduces issues if needing to modify
// the file with ie. notepad.exe which doesn‘t recognize unix linefeeds.
#ifdef _WIN32 // Windows default is \r\n
#ifdef _FORCE_UNIX_LINEFEED
#define _CRLFA “\n“
#define _CRLFW L“\n“
#else
#define _CRLFA “\r\n“
#define _CRLFW

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      35112  2018-11-02 13:29  inifile\inifile.cpp

     文件      21767  2018-11-02 13:29  inifile\inifile.h

     目录          0  2018-11-29 14:30  inifile

----------- ---------  ---------- -----  ----

                56879                    3


评论

共有 条评论

相关资源