工作相关
文章平均质量分 66
o^free
这个作者很懒,什么都没留下…
展开
-
log日志实现
实例file.h#ifndef _FILE_H#define _FILE_H#include <stdio.h>#include <stdlib.h>#define LOG_LEVEL_FATAL 0#define LOG_LEVEL_ERROR 1#define LOG_LEVEL_WARN 2#define LOG_LEVEL_INFO 3#define LOG_LEVEL_DEBUG 4#define LOG_LEVEL_MAX 5#def原创 2021-09-12 12:26:34 · 120 阅读 · 0 评论 -
dt工具实现
实例:service.c#include <stdio.h>#include <sys/socket.h>#include <sys/types.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <sys/un.h>#include #include int num_reverse(int num){ in原创 2021-09-11 17:04:52 · 104 阅读 · 0 评论 -
注册命令实现
实例:main.c#include <iostream>#include <string>#include <stdio.h>#include "debugService.h"using namespace std;class testCmdByClassMemberFunction {public: testCmdByClassMemberFunction(std::string name, int age) : __n原创 2021-09-05 16:10:08 · 107 阅读 · 0 评论