【文件属性】:
文件名称:ConfigParser::warning:这个项目被放弃了。 签出这个代替https
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-11 00:24:25
C++
ConfigParser
C ++ 11中的简单配置文件解析器
用法
1.配置文件
# comment
key = value
# window options
width = 640
height = 480
title = hello, world!
vsync = true
scale = 1.5
# comma separated values
values = 2, 3, 4
2.代码
unsigned int width, height;
std::string title;
bool vsync;
float scale;
ConfigParser config("config.txt");
config.get("width", width);
config.get("height", height);
config.get("title", title);
config
【文件预览】:
ConfigParser-master
----ConfigParser.cpp(3KB)
----ConfigParser.hpp(1KB)
----README.md(854B)
----ConfigParser.inl(2KB)