1 Star 0 Fork 0

lugang/cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 716 Bytes
一键复制 编辑 原始数据 按行查看 历史
lugang51 提交于 2023-12-22 11:14 +08:00 . update AppendFile
/* ************************************************************************
> File Name: main.cpp
> Author: lugang
> Created Time: Thu Dec 21 16:09:26 2023
> Description:
************************************************************************/
#include <cstring>
#include <functional>
#include <map>
#include <fcntl.h>
#include <unistd.h>
#include "OutputStream.h"
#include "File.h"
#include "Logger.h"
#include <iostream>
#include <thread>
#include "GetThreadId.h"
#include <sys/syscall.h>
void thread1()
{
for(int i = 0;i<10;i++){
log_info<<"hello world\n";
}
}
int main(){
AppendFile appendFile("/home/lester/code/test/test2.txt");
appendFile.Append("hello world",11);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lugang0218/cpp.git
git@gitee.com:lugang0218/cpp.git
lugang0218
cpp
cpp
master

搜索帮助