1 2 3 4 5 ··· 41 下一页
摘要: CMakeLists.txt 核心要素 1. |CMake版本​​ |指定最低兼容版本 |必选|​​2. |项目定义​​ |设置项目名称/版本/语言 |必选|​​3. |构建目标​​ |定义可执行文件/静态库/动态库 |必选|​​4. |文件配置​​ |添加源码文件/头文件路径 |必选|​​5. | 阅读全文
posted @ 2025-06-24 23:05 Grooovvve 阅读(17) 评论(0) 推荐(0)
摘要: POSIX标准定义的必须的头文件(26项)<fcntl.h> 文件控制<sys/types.h> 基本系统数据类型(很多类型其实都是用typedef重定义的,和基本类型没什么区别;只是为了定义pid_t,size_t,没别的意思)<sys/stat.h> 文件状态<unistd.h> 符号常量(un 阅读全文
posted @ 2024-12-29 10:53 Grooovvve 阅读(246) 评论(0) 推荐(0)
摘要: C 标准库头文件有29个: <stdio.h> 输入/输出 定义输入/输出函数<stdlib.h> 基础工具:内存管理、程序工具、字符串转换、随机数、算法;定义杂项函数及内存分配函数<string.h> 字符串处理<stddef.h> 常用宏定义<ctype.h> 用来确定包含于字符数据中的类型的函 阅读全文
posted @ 2022-01-23 23:26 Grooovvve 阅读(117) 评论(0) 推荐(0)
摘要: 【进阶命令】 grep 查找 sed 编辑 Linux sed命令完全攻略(超级详细):http://c.biancheng.net/view/4028.html sed命令操作:https://www.runoob.com/linux/linux-comm-sed.html awk 数据分析并生成 阅读全文
posted @ 2021-10-25 19:51 Grooovvve 阅读(95) 评论(0) 推荐(0)
摘要: 用python3实现批量将文件的编码格式进行转换; 需要指定四个参数, 1、搜索的根路径 2、文件的类型(正则表达式来处理) 3、源编码格式 4、目标编码格式 #!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs 阅读全文
posted @ 2021-06-18 15:06 Grooovvve 阅读(1457) 评论(0) 推荐(0)
摘要: 在指定目录下,模糊匹配搜寻目标文件,并得出目标文件的完整路径; 采用match完全匹配; #!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import ctypes import re if __name__==" 阅读全文
posted @ 2021-06-17 20:43 Grooovvve 阅读(1003) 评论(0) 推荐(0)
摘要: 参考链接:https://blog.csdn.net/df0128/article/details/82758554 如果在windows上同时安装了python2和python3, 如果想指定使用python2还是python3;可以使用如下方法:使用python2:py -2使用python3: 阅读全文
posted @ 2021-06-13 01:18 Grooovvve 阅读(88) 评论(0) 推荐(0)
摘要: C语言版: 参考链接:https://blog.csdn.net/a_ran/article/details/40897159 cal_md5.c #include "md5.h" #include <stdio.h> #include <stdlib.h> #include <string.h> 阅读全文
posted @ 2021-06-04 22:53 Grooovvve 阅读(279) 评论(0) 推荐(0)
摘要: 通过stat函数获取文件的大小,单位bytes;无需将文件读入内存,可以计算大文件; #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> int stat(const char *pa 阅读全文
posted @ 2021-06-04 22:02 Grooovvve 阅读(531) 评论(0) 推荐(0)
摘要: 官网: https://mirrors.edge.kernel.org/pub/linux/kernel/ 国内的下载网址: http://ftp.sjtu.edu.cn/sites/ftp.kernel.org/pub/linux/kernel/ 阅读全文
posted @ 2021-05-29 13:40 Grooovvve 阅读(629) 评论(0) 推荐(0)
1 2 3 4 5 ··· 41 下一页