posted @ 2021-05-15 22:57
clayyjh
阅读(2)
推荐(0)
摘要:
1. 一般分割字符串的函数 sscanf strtok strsep(仅在Linux环境下可运行) sscanf的默认分隔符:\r \t \n whitespace 2. 可处理带有连续分隔符的函数 strsep(仅在Linux环境下可运行) 介绍:https://www.cnblogs.com/d
阅读全文
posted @ 2021-04-25 20:11
clayyjh
阅读(892)
推荐(0)
摘要:
如果你在Linux平台上写了一段shell脚本或者某个可执行程序(例如python程序、编译好的可执行C程序),并且想让它开机自启动运行,这个教程应该可以帮得到你! 步骤: 1. 编写脚本 2. 编写服务配置文件 3. 使能服务配置文件 以Shell脚本为例 1. 加入你写了一个脚本test.sh,
阅读全文
posted @ 2021-04-07 14:31
clayyjh
阅读(3694)
推荐(0)
摘要:
1. 通过快速监视 https://blog.csdn.net/sinat_36219858/article/details/80720527 2. 通过即时窗口 3. 通过直接更改名称
阅读全文
posted @ 2021-04-01 21:00
clayyjh
阅读(291)
推荐(0)
摘要:
若全局变量统一在一个文件里,有两种方法: 统一在头文件 文件名:VariablesDefiniation.h #ifndef a #define a int a; int b; ··· #endif 文件名:VariablesDeclearation.h #ifndef b #define b ex
阅读全文
posted @ 2021-03-24 09:05
clayyjh
阅读(333)
推荐(0)
摘要:
数据类型 int int* double double* char char* 字节大小 4 4 8 4 1 4 #include <stdio.h> #include <stdlib.h> int main() { //一维 int double char 相同 int n = 10; int *
阅读全文
posted @ 2021-03-23 17:31
clayyjh
阅读(20)
推荐(0)
摘要:
复制文件到指定目录 cp a.c b.c(当前目录) cp a.c ~/c(另外目录) 复制目录到指定目录下 cp ./src ~/c
阅读全文
posted @ 2021-03-13 22:40
clayyjh
阅读(29)
推荐(0)
摘要:
1. 单个或者较少源文件的编译 gcc -o test test.c gcc -o test test.c test1.c 参考文档: a. https://man7.org/linux/man-pages/man1/gcc.1.html b. https://colobu.com/2018/08/
阅读全文
posted @ 2021-03-13 22:17
clayyjh
阅读(561)
推荐(0)
摘要:
下载地址:https://www.nirsoft.net/utils/wireless_network_watcher.html
阅读全文
posted @ 2021-03-12 22:23
clayyjh
阅读(1318)
推荐(0)
摘要:
新增chrono计算耗时 #include <iostream> #include <chrono> #include <unistd.h> using namespace std; // 测量 C++ 程序运行时间的主函数 // 使用 Chrono 库 int main() { auto star
阅读全文
posted @ 2021-03-12 22:04
clayyjh
阅读(2385)
推荐(1)