09 2023 档案

摘要:GCC 自动识别的常用扩展名 以c语言的方式编译当前文件(即为demo) gcc -xc demo GCC 常用编译选项 GCC 生成 a.out 的过程 1.预处理 预处理过程主要是处理那些源文件和头文件中以#开头的命令,比如 #include、#define、#ifdef 等。预处理的规则一般如 阅读全文
posted @ 2023-09-29 22:40 hacker_dvd 阅读(15) 评论(0) 推荐(0) 编辑
摘要:basename, dirname的用法 basename,dirname用法 atoi 函数 char* num = "12345"; printf("%d\n", atoi(num)); recv 函数 recv详解: 阅读全文
posted @ 2023-09-15 23:14 hacker_dvd 阅读(6) 评论(0) 推荐(0) 编辑
摘要:floyd 算法 template <typename T> struct Floyd { const T INF = std::is_same_v<T, long long> ? 1e18 : 1e9; int n; std::vector<std::vector<T>> dp; Floyd(in 阅读全文
posted @ 2023-09-13 20:28 hacker_dvd 阅读(5) 评论(0) 推荐(0) 编辑
摘要:采用 socket 实现服务端和客户端通信 server.c #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys 阅读全文
posted @ 2023-09-10 18:03 hacker_dvd 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示