lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 48 下一页

2022年9月3日

摘要: c_cpp:多级指针 一、多级指针 1、多级指针(二级指针及以上),它们都指向前一级指针(pointer_M=&point_M-1,{M | M∈N且M∈[1,∞) } )。 示意: int varaible=80; int* pointer_1; pointer_n = &pointer_n-1; 阅读全文
posted @ 2022-09-03 15:30 lnlidawei 阅读(47) 评论(0) 推荐(0)

摘要: shell: list_executable_file - 列出当前文件夹的可执行文件名称(linux) 一、shell: list_executable_file 1 #!/usr/bin/bash 2 3 4 # file_name=list_executable_file 5 # functi 阅读全文
posted @ 2022-09-03 01:24 lnlidawei 阅读(193) 评论(0) 推荐(0)

2022年9月2日

摘要: shell:delete_executable_file - 删除当前文件夹的可执行文件(linux) 一、 delete_executable_file - 删除当前文件夹的可执行文件(linux) 1 #!/usr/bin/bash 2 3 4 # file_name = delete_exec 阅读全文
posted @ 2022-09-02 23:26 lnlidawei 阅读(342) 评论(0) 推荐(0)

2022年9月1日

摘要: c/cpp: 指针的双重赋值 一、指针使用、引用的运用 1、指针具有双重赋值的属性:第一重赋值,为指针变量赋值内存地址;第二重赋值,为指针变量所指的内存的存储空间赋予内容。 二、代码部分 1、c代码 1 [root@rockylinux tmp]# uname -a 2 Linux rockylin 阅读全文
posted @ 2022-09-01 17:13 lnlidawei 阅读(176) 评论(0) 推荐(0)

2022年8月30日

摘要: cpp: 指针和引用(class & object) 一、指针使用、引用的运用 1、指针具有双重赋值的属性:第一重赋值,为指针变量赋值内存地址;第二重赋值,为指针变量所指的内存的存储空间赋予内容。 2、(引用:cpp的特性;“引用”作为函数的参数):"引用"仍然是值传递。和普通变量相比较,“引用”只 阅读全文
posted @ 2022-08-30 18:51 lnlidawei 阅读(435) 评论(0) 推荐(0)

摘要: cpp:' data_type * '被视为一个数据类型 一、结论 1、data_type *,它被视为一个数据类型; 2、data_type *,用于定义指针变量; 3、举例: int * pt = nullptr; // int* 被视为一个数据类型; 1 [root@rockylinux tm 阅读全文
posted @ 2022-08-30 14:49 lnlidawei 阅读(110) 评论(0) 推荐(0)

2022年8月26日

摘要: php:定义“关联数组”的显示函数(bug版本) 一、关联数组的显示函数代码部分 1 <?php 2 3 4 /* 函数定义区域 */ 5 6 // 定义“关联数组”的显示函数 7 // $array_data: 用于显示的关联数组; 8 // $print_limit: 限制显示关联数组的元素的数 阅读全文
posted @ 2022-08-26 21:11 lnlidawei 阅读(38) 评论(0) 推荐(0)

2022年8月16日

摘要: php:php以脚本的方式运行 一、php源码 1 [root@rockylinux php]# 2 [root@rockylinux php]# uname -a 3 Linux rockylinux 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Tue Aug 2 16 阅读全文
posted @ 2022-08-16 20:21 lnlidawei 阅读(254) 评论(0) 推荐(0)

摘要: php:输出关联数组特定范围的数据 一、php源码(将“关联数组”转化为“索引数组”,然后输出) 1 <?php 2 3 // define data structure 4 class SCOPE 5 { 6 private $scp_start=""; 7 private $scp_end="" 阅读全文
posted @ 2022-08-16 13:04 lnlidawei 阅读(115) 评论(0) 推荐(0)

摘要: python3:面向对象之成员变量(成员变量赋值为元组、字典) 一、python3源码 1 #!/usr/bin/python3 2 3 4 class data: 5 6 # python是“弱类型语言”,可以给“变量”赋予“任何类型的数值” 7 8 # '__'开头的变量,此变量的访问类型为pr 阅读全文
posted @ 2022-08-16 01:49 lnlidawei 阅读(222) 评论(0) 推荐(0)

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 48 下一页