lnlidawei

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

2022年8月16日

摘要: php:面向对象之成员变量(数组) 一、PHP源码 1 <?php 2 3 class DATA{ 4 public $dlt_data = ""; 5 6 // set value of $dlt_data by ARRAY 7 function set_array_value($array_ty 阅读全文
posted @ 2022-08-16 01:08 lnlidawei 阅读(143) 评论(0) 推荐(0)

2022年8月6日

摘要: php:对象的数组(3) 一、php源码 <?php class obj { public $value = ""; } $num = array(1,2,3,4,5,6); for($i=0; $i<6; $i++) { // 数组的创建: 可以用另一个数组元素($num[$i])作为索引; $c 阅读全文
posted @ 2022-08-06 18:35 lnlidawei 阅读(88) 评论(0) 推荐(0)

摘要: php:对象的数组(2) 一、代码一 1、“代码一”的源码 <?php class NUM { public $number=""; public $number_class=""; } class obj { public $v1 = ""; public $v2 = ""; } for($i=0 阅读全文
posted @ 2022-08-06 16:54 lnlidawei 阅读(195) 评论(0) 推荐(0)

摘要: php:对象的数组(1) 一、php源码 <?php // define object class obj{ public $v1 = ""; public $v2 = ""; public function init() { $this -> v1 = ""; $this -> v2 = ""; 阅读全文
posted @ 2022-08-06 15:54 lnlidawei 阅读(122) 评论(0) 推荐(0)

2022年7月12日

摘要: gcc - include - 具体位置: 一、gcc - C - 头文件的具体位置 1、 查找命令:[root@rockylinux tmp]# gcc -xc -E -v - 2、 c-include的位置: [root@rockylinux tmp]# gcc -xc -E -v - #inc 阅读全文
posted @ 2022-07-12 12:43 lnlidawei 阅读(227) 评论(0) 推荐(0)

2022年7月11日

摘要: LAMP 环境搭建(LAMP, L=Linux, A=httpd(apache), M=MariaDB, P=PHP) 一、操作系统 1、openeuler: Linux openeuler 5.10.0-60.18.0.50.oe2203.x86_64 二、lamp环境安装 1、[root@ope 阅读全文
posted @ 2022-07-11 16:56 lnlidawei 阅读(256) 评论(0) 推荐(0)

2022年7月4日

摘要: c:struct之匿名struct 一、代码: /* * gcc11.1(c17) * */ #include <stddef.h> #include <stdio.h> // 定义常规struct和指针struct typedef struct { // 匿名struct的定义 struct{ c 阅读全文
posted @ 2022-07-04 01:02 lnlidawei 阅读(178) 评论(0) 推荐(0)

2022年7月3日

摘要: c: macro define 复杂的宏定义 一、源码 [root@rockylinux tmp]# cat macro_define.c /** * 宏命定义的注意事项: * 1、带有参数的宏,参数使用时需要写在"()"之中,这样在宏展开时不会改变设计时的运算级别,保证结果正确; * 举例:#de 阅读全文
posted @ 2022-07-03 11:53 lnlidawei 阅读(159) 评论(0) 推荐(0)

2022年7月1日

摘要: c: setjmp.h 库的使用 一、代码 [root@rockylinux tmp]# cat setjmp.c /* longjmp example */ #include /* printf */ #include /* jmp_buf, setjmp, longjmp */ int main 阅读全文
posted @ 2022-07-01 14:33 lnlidawei 阅读(59) 评论(0) 推荐(0)

摘要: c:c语言数字转化为字符串以及指向三维数组的指针 [root@rockylinux tmp]# cat pointer_array.c [root@rockylinux tmp]# cat pointer_array.c /* date: 2022-07-01 * * * 知识点:数字转化为字符串: 阅读全文
posted @ 2022-07-01 10:47 lnlidawei 阅读(340) 评论(0) 推荐(0)

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