c语言
「已注销」
这个作者很懒,什么都没留下…
展开
-
C 语言玩具版日志服务
C 语言玩具版日志服务 log.h #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long ll; typedef struct log { ll timeStamp; char prefix[1024]; char message[1024]; void (*Println)(const c原创 2022-01-02 22:33:41 · 443 阅读 · 1 评论 -
C 语言实现简易区块链
C 语言实现简易区块链 总结:C 语言真不是我这种菜鸡所能驾驭的… 无奈哈希函数太麻烦,就采用 base64 替代下哈希函数吧,其他符合区块链理论 #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> // base64 编码 static const char *ALPHA_BASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcd原创 2021-11-29 23:25:27 · 6446 阅读 · 5 评论 -
C 语言模拟 MapReduce 切分单词
C 语言模拟 MapReduce 切分单词 本文仅仅采用了单机单线程来做演示,有需要的自行修改 #include <stdio.h> #include "string.h" #include "pthread.h" #define PTHREAD_NUMS 2 typedef struct fileSpilt { int countLine; char content[1024][1024]; } FileSpilt; FileSpilt fileSpilt; //原创 2021-11-23 22:11:58 · 318 阅读 · 0 评论