会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
84
85
86
87
88
89
90
91
92
···
120
下一页
2021年12月23日
C++ valgrind detect memory leak
摘要: 1.Install valgrind in ubuntu sudo apt-get install valgrind 2.Write the code in cpp for demonstration.Ignore the free allocated memory on purpose. #inc
阅读全文
posted @ 2021-12-23 11:02 FredGrit
阅读(117)
评论(0)
推荐(0)
2021年12月20日
C++ pass array as pointer and increment the pointer to retrieve array data
摘要: #include <iostream> #include <uuid/uuid.h> #include <ctime> #include <fstream> #include <sstream> #include <chrono> #include <string.h> using namespac
阅读全文
posted @ 2021-12-20 12:15 FredGrit
阅读(40)
评论(0)
推荐(0)
C++ write and read file via fstream and time cost
摘要: #include <iostream> #include <uuid/uuid.h> #include <ctime> #include <fstream> #include <sstream> #include <chrono> #include <string.h> using namespac
阅读全文
posted @ 2021-12-20 11:34 FredGrit
阅读(54)
评论(0)
推荐(0)
2021年12月17日
C++ simdjson from beginning
摘要: 1.Download package wget http://archive.ubuntu.com/ubuntu/pool/universe/s/simdjson/libsimdjson5_0.7.1-1_amd64.deb 2.Install simdjson package in Ubuntu
阅读全文
posted @ 2021-12-17 15:25 FredGrit
阅读(453)
评论(0)
推荐(0)
2021年12月16日
c pass function as function parameter
摘要: #include <iostream> using namespace std; void printNum(int x); void invokeFunc2(void (*funcName)(int)); int main() { invokeFunc2(&printNum); return 0;
阅读全文
posted @ 2021-12-16 18:06 FredGrit
阅读(28)
评论(0)
推荐(0)
C++ boost serialize struct to text
摘要: #include <iostream> #include <ctime> #include <vector> #include <unistd.h> #include <uuid/uuid.h> #include <boost/archive/text_oarchive.hpp> #include
阅读全文
posted @ 2021-12-16 16:48 FredGrit
阅读(80)
评论(0)
推荐(0)
2021年12月15日
C++ sort() method with 1.default operator,2 stand library compare ,3custom function,4,lambda expression
摘要: #include <iostream> #include <unistd.h> #include <uuid/uuid.h> #include <ctime> #include <random> #include <array> #include <algorithm> #include <func
阅读全文
posted @ 2021-12-15 10:49 FredGrit
阅读(46)
评论(0)
推荐(0)
2021年12月14日
C++ array container reverse_iterator rbegin rend
摘要: #include <iostream> #include <uuid/uuid.h> #include <time.h> #include <array> #include <iterator> #include <ctime> #include <random> #include <algorit
阅读全文
posted @ 2021-12-14 09:30 FredGrit
阅读(41)
评论(0)
推荐(0)
2021年12月13日
C++ retrieve array via returned array pointer .Retrieve array via returned pointer one by one.
摘要: #include <iostream> #include <uuid/uuid.h> #include <pthread.h> using namespace std; void retrieveUuid(char *uuidValue); struct BookStruct { int BookI
阅读全文
posted @ 2021-12-13 14:42 FredGrit
阅读(40)
评论(0)
推荐(0)
2021年12月12日
C++ write and read file via fstream in ios::out,ios::in,ios::app mode
摘要: #include <iostream> #include <uuid/uuid.h> #include <ostream> #include <istream> #include <fstream> #include <iostream> using namespace std; void retr
阅读全文
posted @ 2021-12-12 16:27 FredGrit
阅读(92)
评论(0)
推荐(0)
上一页
1
···
84
85
86
87
88
89
90
91
92
···
120
下一页
公告