会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
88
89
90
91
92
93
94
95
96
···
120
下一页
2021年10月16日
C++ generate in Ubuntu
摘要: #include <uuid/uuid.h> void printUuid() { uuid_t newUUId; uuid_generate(newUUId); char *msg = (char *) malloc(37*sizeof(char)); uuid_unparse(newUUId,m
阅读全文
posted @ 2021-10-16 15:59 FredGrit
阅读(40)
评论(0)
推荐(0)
2021年9月3日
C# pointer to array
摘要: void arrDemo8() { int* p; p = returnArr(); cout << typeid(p).name() << endl; for (int i = 0; i < 10; i++) { cout << *(p+i) << endl; } } int* returnArr
阅读全文
posted @ 2021-09-03 20:46 FredGrit
阅读(99)
评论(0)
推荐(0)
2021年8月10日
Offline visual studio's signed account has gone stale copy OnlineLicensing folder to offline computer's location C:\Users\username\AppData\Local\Microsoft\VSCommon
摘要: your licence has gone stale and must be updated Copy from https://stackoverflow.com/questions/43390466/is-visual-studio-community-a-30-day-trial. To b
阅读全文
posted @ 2021-08-10 16:46 FredGrit
阅读(17)
评论(0)
推荐(0)
2021年7月19日
Split string via delimiter and print the split string and delimiter's index
摘要: void testStringFindAndSubstrDemo() { string str = "hello,world,hello,c++,hello,boost, ,hello,cpp,,hellocpp,,,,,,,,HellostrFind"; string delim = ","; s
阅读全文
posted @ 2021-07-19 15:17 FredGrit
阅读(28)
评论(0)
推荐(0)
2021年7月16日
C++ read big file line by line and parse it.
摘要: #include <iostream> #include <typeinfo> #include <istream> #include <fstream> #include <string> #include <sstream> #include <vector> void readBigFileD
阅读全文
posted @ 2021-07-16 09:52 FredGrit
阅读(74)
评论(0)
推荐(0)
2021年7月8日
C++ write big files (10G+) continuously,pour data into the file and release memory manually
摘要: 1 #pragma comment(lib,"rpcrt4.lib") 2 #include<Windows.h> 3 #include<iostream> 4 #include<algorithm> 5 #include<string> 6 #include<fstream> 7 #include
阅读全文
posted @ 2021-07-08 18:53 FredGrit
阅读(84)
评论(0)
推荐(0)
2021年6月24日
C# read huge file which size over 20G+
摘要: static void Main(string[] args) { string fileName = @"logFile3.txt"; ReadFile(fileName); Console.ReadLine(); } static void ReadFile(string fileName) {
阅读全文
posted @ 2021-06-24 15:35 FredGrit
阅读(59)
评论(0)
推荐(0)
2021年6月11日
WPF mvvm select multi items via
摘要: 1.install-package Microsoft.Xaml.Behaviors.Wpf; 2.xmlns:i="http://schemas.microsoft.com/xaml/behaviors"; 3. <DataGrid x:Name="dg" Grid.Row="0" ItemsSo
阅读全文
posted @ 2021-06-11 11:53 FredGrit
阅读(72)
评论(0)
推荐(0)
2021年5月26日
C++ optimized fib function via map
摘要: 1 #include <iostream> 2 #include <map> 3 4 using namespace std; 5 6 map<int, unsigned long long> fibMap; 7 unsigned long long fibDemo4(int i); 8 9 int
阅读全文
posted @ 2021-05-26 10:24 FredGrit
阅读(54)
评论(0)
推荐(0)
2021年5月24日
C++ write time string and uuid to file
摘要: #pragma comment(lib, "rpcrt4.lib") #include <iostream> #include <time.h> #include <windows.h> #include <sstream> #include <fstream> using namespace st
阅读全文
posted @ 2021-05-24 19:46 FredGrit
阅读(62)
评论(0)
推荐(0)
上一页
1
···
88
89
90
91
92
93
94
95
96
···
120
下一页
公告