⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testconfig1.cpp

📁 ICC means Internet Communication Component,it has many classes and frameworks that help develop netw
💻 CPP
字号:

#include "icc/Configuration.h"
#include "icc/Log.h"
#include <string>
//#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
  Configuration config;
  if (config.open ("data.ini") != 0)
    return -1;

  string value1 = config.getConfig ("SERVER", "listenPort");
  //cout << value1 << endl;
  LogMsg << "SERVER listen port:" << value1 << endl;

  string value2 = config.getConfig ("REGISTERSERVER", "registerServerIp");
  //cout << value2 << endl;

  return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -