lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 52 下一页

2024年11月15日

摘要: [c/cpp]:指针的区别:【 int *px[3] 和 int (*pa)[3] 】 一、程序代码 1 #include <iostream> 2 3 4 int msg() 5 { 6 int x[3] = {1,2,3}; 7 8 int xx[4][3] = { 9 {1,2,3}, 10 阅读全文
posted @ 2024-11-15 00:24 lnlidawei 阅读(98) 评论(0) 推荐(0)

2024年11月14日

摘要: [c/cpp]:模板指针 一、程序代码 1 #include <iostream> 2 3 4 int msg(int x) 5 { 6 std::cout <<"\t[msg]#\t x := "<< x << std::endl; 7 return x; 8 } 9 10 11 // gener 阅读全文
posted @ 2024-11-14 20:11 lnlidawei 阅读(43) 评论(0) 推荐(0)

2024年11月8日

摘要: [三极管]:三极管工作原理(百度AI) 一、三极管工作原理 二、发射结正偏 三、发射结反偏 四、基极、集电极、发射极 五、参考资料 1、 三极管的工作原理 - https://www.baidu.com/s?word=三极管的工作原理&rsv_dl=DQA_PC_COPY 2、 发射结正偏 - ht 阅读全文
posted @ 2024-11-08 06:45 lnlidawei 阅读(151) 评论(0) 推荐(0)

摘要: [c/cpp]:递归算法:汉诺塔问题代码 一、代码 1 #include <iostream> 2 3 4 using namespace std; 5 6 7 // plate_numbers=n; 8 // from_stick=from; 9 // target_stick=to; 10 // 阅读全文
posted @ 2024-11-08 05:53 lnlidawei 阅读(103) 评论(0) 推荐(0)

2024年11月3日

摘要: [c/cpp]:字母大小写转换 一、代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 5 6 char ip1[] = "01234567890AbcDEf"; 7 char ip2[] = "01234567890 阅读全文
posted @ 2024-11-03 07:08 lnlidawei 阅读(94) 评论(0) 推荐(0)

摘要: [c/cpp]:字符计数和文本行计数 一、代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 5 6 char input[] = "1\n2\n3\n"; 7 8 9 // string_length = strin 阅读全文
posted @ 2024-11-03 06:45 lnlidawei 阅读(57) 评论(0) 推荐(0)

2024年11月2日

摘要: [os/linux]:计算机中的编码和解码(ASCII) 一、ASCII(American Standard Code For Information Interchange)简介 1、 在二进制的计算机中,ASCII用‘8位二进制数值’表示一个‘字符’;这样就形成了“字符”和“数值”之间的对应关系 阅读全文
posted @ 2024-11-02 18:43 lnlidawei 阅读(117) 评论(0) 推荐(0)

摘要: [linux] 内核模块的编译(百度AI整理) 一、正文内容 [linux] 内核模块的编译(百度AI整理) 在Linux中编译内核模块通常涉及以下步骤: 一、 安装必要的工具和库(ubuntu): sudo apt-get install build-essential linux-headers 阅读全文
posted @ 2024-11-02 02:51 lnlidawei 阅读(157) 评论(0) 推荐(0)

2024年11月1日

摘要: [c/cpp]:函数指针数组的应用(模拟系统调用) 一、说明 1、 函数指针数组: 一个指针数组,它的元素是函数指针;函数指针数组。 二、程序代码 1 [root@rocky:test]# cat syscalls.c 2 #include <stdio.h> 3 #include <stdlib. 阅读全文
posted @ 2024-11-01 02:38 lnlidawei 阅读(85) 评论(0) 推荐(0)

摘要: [c/cpp]:指向函数的指针数组(函数指针的数组) 〇、说明: 1、 函数指针: 一个指针,它指向一个函数。 2、 函数指针数组: 一个指针数组,它的元素是函数指针。 一、程序代码 1 [root@rocky:test]# cat test.c 2 #include <stdio.h> 3 #in 阅读全文
posted @ 2024-11-01 01:51 lnlidawei 阅读(46) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 52 下一页