2022/8/3

make_shared函数

听说可以提高安全性 auto new_task = make_shared<DetectTask>(this, TaskId, CallParam, this)…

  • C++
  • 2022/8/3
  • wangchunlin
  • 253
  • 2022/8/2

    C++ Json 基本的操作

    #include "json.h" Json::Value jsobj; LOG_TRACE("rst:%s",outParam.toStyled…

  • C++
  • 2022/8/2
  • wangchunlin
  • 108
  • 2022/8/2

    C++代码中时间打印

    struct timeval time; gettimeofday(&time, NULL); long start_time = time.tv_sec*1000 + time.t…

  • C++
  • 2022/8/2
  • wangchunlin
  • 104
  • 2022/8/1

    c++多个文件时,函数变量作用域

    最简单的写法 main.cpp #include<iostream> void example_func() { // pass } int main…

  • C++
  • 2022/8/1
  • wangchunlin
  • 107
  • 2022/7/29

    C++操作文件

    创建文件 if (access(Para["OutTxtPath"].asString().c_str(), 0) == -1) { LOG_INFO…

  • C++
  • 2022/7/29
  • wangchunlin
  • 145