lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

11 2024 档案

摘要:【asm/c/cpp】:时间单位换算(秒) 一、秒的单位: 1、 second(秒:s) 2、 microsecond(微秒:ms): 1 second = 1000 microseconds (1s = 103 ms) 3、 millisecond(毫秒:μs): 1 second = 10000 阅读全文
posted @ 2024-11-29 06:43 lnlidawei 阅读(108) 评论(0) 推荐(0)

摘要:【学习方法】神级学习技能 神级学习技能总结:睡好觉,预习,复述(讲述式口述/笔述),实战,自问自答(问答式口述/笔述),归纳总结。 神级学习技能: (一) 睡好觉(睡眠就是生产力,最少睡7小时); (二) 预习(主动学习/精力注意力分配:找到自己预习时不会的地方,这是确定听课重点); (三) 复述/ 阅读全文
posted @ 2024-11-24 01:56 lnlidawei 阅读(45) 评论(0) 推荐(0)

摘要:【算法】平衡二叉搜索树之旋转(百度AI) 一、 平衡二叉搜索树的旋转 二、参考资料 1、 百度AI - https://www.baidu.com/s?word=平衡搜索旋转的原理&rsv_dl=DQA_PC_COPY 阅读全文
posted @ 2024-11-22 18:30 lnlidawei 阅读(13) 评论(0) 推荐(0)

摘要:【神级认知】:搞钱是红尘最顶级的修炼(音频转文字) 原文地址: -- https://www.bilibili.com/video/BV18LtoeTEwi/ -- https://www.douyin.com/video/7379904782590332160 -- https://www.xim 阅读全文
posted @ 2024-11-21 21:03 lnlidawei 阅读(27) 评论(0) 推荐(0)

摘要:[algorithms] 暴力算法(字符串匹配) 一、代码 1 #include <cstdio> 2 #include <cstdlib> 3 #include <cstring> 4 5 6 int match1(char *source, char *pattern) 7 { 8 int de 阅读全文
posted @ 2024-11-20 00:34 lnlidawei 阅读(28) 评论(0) 推荐(0)

摘要:[c/cpp]: user stack - test 1. code 1 #include <cstdio> 2 3 4 #define STACKSIZE 100 5 6 7 struct stack { 8 int index; 9 int e[STACKSIZE]; 10 }; 11 12 1 阅读全文
posted @ 2024-11-18 07:06 lnlidawei 阅读(9) 评论(0) 推荐(0)

摘要:[asm] as - linux64 1 code 1 [root@rocky:src]# cat hello64.as 2 # filename = hello64.as 3 4 5 .data 6 msg : .string "Hello, World!\n" 7 len = . - msg 8 阅读全文
posted @ 2024-11-18 05:01 lnlidawei 阅读(17) 评论(0) 推荐(0)

摘要:[asm/c/cpp]: function syscall() 1. syscall() - docs [root@rocky:src]# cat syscall.txt syscall(2) System Calls Manual syscall(2) NAME syscall - indirec 阅读全文
posted @ 2024-11-18 04:16 lnlidawei 阅读(56) 评论(0) 推荐(0)

摘要:【哲学思考】:内卷的解决方案 内卷,即无论多少付出和努力,收入却无明显增加。 当你进行巨量的付出和努力、却无法明显增加收益时,那么你就陷入了内卷。 面对内卷时,我的解决方案是换赛道或者开辟新赛道。 换赛道。换赛道,有两种类型。其一,在行业内更换细分领域;其二,换行业。我们的现实世界中,总有些行业(细 阅读全文
posted @ 2024-11-15 03:17 lnlidawei 阅读(44) 评论(0) 推荐(0)

摘要:[c/cpp]:数据结构:表格实现(table) 一、程序代码 1 /* 2 * table { 3 * id value 4 * record[0].id record[0].value 5 * record[1].id record[1].value 6 * record[2].id recor 阅读全文
posted @ 2024-11-15 02:24 lnlidawei 阅读(52) 评论(0) 推荐(0)

摘要:[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 阅读(21) 评论(0) 推荐(0)

摘要:[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 阅读(11) 评论(0) 推荐(0)

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

摘要:[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 阅读(50) 评论(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 阅读(23) 评论(0) 推荐(0)

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

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

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