会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
72
73
74
75
76
77
78
79
80
···
120
下一页
2022年11月28日
JsonCpp serialize vector which contains class
摘要: //Book.cpp #include <iostream> using namespace std; class Book { public: int Idx; char *ISBN; char *Name; char *Abstract; char *Content; char *Topic;
阅读全文
posted @ 2022-11-28 15:02 FredGrit
阅读(30)
评论(0)
推荐(0)
2022年11月27日
Cpp generic class and functions,declare in header file and implementation in cpp file seperately
摘要: //Util.h #ifndef _Util_H_ #define _Util_H_ #include <iostream> #include <random> using namespace std; template <class T> class Util { public: random_d
阅读全文
posted @ 2022-11-27 20:23 FredGrit
阅读(19)
评论(0)
推荐(0)
2022年11月26日
c read directories and files recursively based on a given directory
摘要: #include <dirent.h> #include <stdio.h> #include <string.h> void listFilesRecursively(char *basePath) { char path[1000]; struct dirent *dp; DIR *dir =
阅读全文
posted @ 2022-11-26 20:04 FredGrit
阅读(24)
评论(0)
推荐(0)
2022年11月20日
SLA
摘要:
阅读全文
posted @ 2022-11-20 19:55 FredGrit
阅读(101)
评论(0)
推荐(0)
2022年11月13日
ubuntu install rapidjson
摘要: 1.Install sudo apt-get install rapidjson-dev 2.Code #include <algorithm> #include <chrono> #include <ctime> #include <fstream> #include <iostream> #in
阅读全文
posted @ 2022-11-13 19:03 FredGrit
阅读(518)
评论(0)
推荐(0)
ubuntu install jsoncpp and demos,StyledWriter,FastWriter,Reader,parse
摘要: 1.Install sudo apt-get install libjsoncpp-dev 2.Add using header. #include <jsoncpp/json/json.h> 3.Use #include <algorithm> #include <chrono> #include
阅读全文
posted @ 2022-11-13 17:59 FredGrit
阅读(179)
评论(0)
推荐(0)
2022年11月6日
C++ get random via random_device, mt19937_64,uniform_int_distribution, quick sort
摘要: #include <chrono> #include <ctime> #include <fstream> #include <iostream> #include <random> #include <sstream> #include <thread> #include <unistd.h> #
阅读全文
posted @ 2022-11-06 18:41 FredGrit
阅读(63)
评论(0)
推荐(0)
2022年10月22日
In Ubuntu 20.04 capture screen/screenshot via Fn+Prtsc short cut combination.
摘要:
阅读全文
posted @ 2022-10-22 21:26 FredGrit
阅读(28)
评论(0)
推荐(0)
2022年10月17日
C++ hash in #include <unordered_map>
摘要: #pragma once #pragma comment(lib,"rpcrt4.lib") #include <Windows.h> #include <rpcdce.h> #include <iostream> #include <thread> #include <unordered_map>
阅读全文
posted @ 2022-10-17 11:18 FredGrit
阅读(36)
评论(0)
推荐(0)
2022年10月14日
C++ thread array and join respectively
摘要: #pragma comment(lib,"rpcrt4.lib") #include <Windows.h> #include <rpcdce.h> #include <iostream> #include <string> #include <thread> #include <vector> u
阅读全文
posted @ 2022-10-14 12:30 FredGrit
阅读(37)
评论(0)
推荐(0)
上一页
1
···
72
73
74
75
76
77
78
79
80
···
120
下一页
公告