資源簡介
標準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
- 上一篇:數據結構的線性表設計程序
- 下一篇:基于線性表的圖書管理系統 源代碼 順序表鏈表
評論
共有 條評論