会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
INnoVation-V2
首页
新随笔
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
25
下一页
2022年8月16日
C语言`union`及`位域`
摘要: C语言union及位域 1.union union就相当于一个类型不固定的变量,变量大小由union内最长的变量决定,存储空间共享,访问内部不同的变量,就会以相应的变量规范对内存进行解析,以如下union为例 typedef union{ uint32_t v1; int32_t v2; } uni
阅读全文
posted @ 2022-08-16 17:47 INnoVation-V2
阅读(806)
评论(0)
推荐(0)
2022年8月9日
字符串哈希
摘要: 字符串哈希 题目 给定一个长度为 n 的字符串,再给定 m 个询问,每个询问包含四个整数 $l_1,r_1,l_2,r_2$,请你判断 $[l_1,r_1]$ 和 $[l_2,r_2]$ 这两个区间所包含的字符串子串是否完全相同。字符串中只包含大小写英文字母和数字。 思路 利用哈希的思想,将一段字符
阅读全文
posted @ 2022-08-09 20:59 INnoVation-V2
阅读(29)
评论(0)
推荐(0)
2022年8月4日
为什么getline第一个参数是指针的指针?
摘要: 为什么getline第一个参数是指针的指针? 因为需要修改指针的值,如下代码为例 void change(char *val) { val = "456789"; } void change_2(char **pointer) { *pointer = "456789"; } int main()
阅读全文
posted @ 2022-08-04 12:25 INnoVation-V2
阅读(48)
评论(0)
推荐(0)
2022年7月18日
Linux统计代码行数
摘要: 代码 find . -name "*.c" -o -name "*.h" -name -not "*test*"| xargs cat | grep -v ^$ | wc -l 解读 find: 字面意思 -name: 是find的一个参数,过滤出文件名符合条件的文件 -not: 排除 -o: sh
阅读全文
posted @ 2022-07-18 01:30 INnoVation-V2
阅读(591)
评论(0)
推荐(0)
2022年7月5日
getopt解析
摘要: getopt解析 主要由以下三个函数组成 getopt() getopt_long() getopt_long_only() optarg——指向当前选项参数(如果有)的指针。 optind——再次调用 getopt() 时的下一个 argv 指针的索引。 optopt——最后一个未知选项。 功能
阅读全文
posted @ 2022-07-05 17:12 INnoVation-V2
阅读(101)
评论(0)
推荐(0)
宏导致的时间复杂度暴增
摘要: #define MAX(a, b) ((a > b) ? (a):(b)) static int cycle = 0; int a[] = { 9, 3, 5, 2, 1, 0, 8, 7, 6, 4 }; int MAX2(int a, int b) { return a > b ? a : b;
阅读全文
posted @ 2022-07-05 15:43 INnoVation-V2
阅读(45)
评论(0)
推荐(0)
LLDB
摘要: LLDB | 命令 | 描述 | | | | | thread backtrace(bt) | 查看各级函数调用及参数 | | thread step-out(finish) | 连续运行到当前函数返回为止,然后停下来等待命令 | | frame(或f) 帧编号 | 选择栈帧 | | info(或i
阅读全文
posted @ 2022-07-05 15:42 INnoVation-V2
阅读(194)
评论(0)
推荐(0)
2022年7月4日
frp + Ubuntu屏幕共享配置
摘要: frp配置教程在这里(https://www.cnblogs.com/INnoVationv2/p/16442967.html) 1.如果是最小化安装ubuntu,可能没有屏幕共享,需要先安装,如果有,那就略过 sudo apt-get install vino 2.配置 1. sudo apt-g
阅读全文
posted @ 2022-07-04 16:17 INnoVation-V2
阅读(243)
评论(0)
推荐(0)
Ubuntu最小安装没有屏幕共享,手动安装教程
摘要: 1. sudo apt-get install dconf-tools 2. dconf write /org/gnome/desktop/remote-access/require-encryption false 3. /usr/lib/vino/vino-server --sm-disable
阅读全文
posted @ 2022-07-04 16:11 INnoVation-V2
阅读(518)
评论(0)
推荐(0)
Ubuntu 服务启动失败
摘要: 我这边是frp开机启动每次都失败,需要手动重启 错误代码 2022/07/04 15:58:16 [W] [service.go:128] > 7月 04 15:58:16 innovation frpc[717]: dial tcp 81.68.87.95:7000: connect: netwo
阅读全文
posted @ 2022-07-04 16:06 INnoVation-V2
阅读(922)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
25
下一页
公告