Qt读写配置文件system.ini
头文件的实现
config.h
1  | #ifndef CONFIG_H  | 
源文件的实现
UtilsConfig.cpp
1  | #include "config.h"  | 
sysConfig.ini文件位置及内容
文件位置:与main.cpp等文件在同一个目录
文件内容:
1  | [REMOTE_TCP]  | 
项目源文件使用
主要代码
1  | // 获取配置文件的值  | 
Qt读写配置文件system.ini
config.h
1  | #ifndef CONFIG_H  | 
UtilsConfig.cpp
1  | #include "config.h"  | 
文件位置:与main.cpp等文件在同一个目录
文件内容:
1  | [REMOTE_TCP]  | 
主要代码
1  | // 获取配置文件的值  | 
tag:
            缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
 npm i hexo-generator-json-content --save
            3、在根目录_config.yml里添加配置:
  jsonContent:
    meta: false
    pages: false
    posts:
      title: true
      date: true
      path: true
      text: false
      raw: false
      content: false
      slug: false
      updated: false
      comments: false
      link: false
      permalink: false
      excerpt: false
      categories: false
      tags: true