摘要: // 顺序栈 #include <stdlib.h> #include <stdio.h> #define STATUS_TRUE 1 #define STATUS_FALSE 0 #define MAXSIZE 100 typedef int SElemType; /* * ADT - 栈的基本抽 阅读全文
posted @ 2020-08-26 13:57 墨狮 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h> #include <stdio.h> #define STATUS_OK 0 #define STATUS_FAILED -1 // 定义基本数据结构 // 1 利用大数组定义静态链表,数组由头结点,尾结点,已用链表,备用链表四部分构成 // 2 数组头结点: 阅读全文
posted @ 2020-08-20 21:22 墨狮 阅读(250) 评论(0) 推荐(0) 编辑
摘要: // 实现单循环链表 #include <stdlib.h> // 引入标准库与输入输出库 #include <stdio.h> typedef int ElemType; // 定义带头结点的单链表 typedef struct node { ElemType data; struct node* 阅读全文
posted @ 2020-08-20 18:44 墨狮 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 【https://www.cnblogs.com/lfalex0831/p/9681804.html】 阅读全文
posted @ 2020-05-29 11:55 墨狮 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 打开.../sdk/tools/monitor.bat 注意:Android 9.0以上无法直接使用uiautomatorviewer.bat 获取截屏与.uix文件,并pull到电脑: 注明:新手机地址改成:/data/local/tmp/ .uix 参考 https://www.cnblogs. 阅读全文
posted @ 2019-12-27 23:01 墨狮 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 【http://androidxref.com/】 Android源码阅读 【https://www.vogella.com/tutorials/android.html】 Android教程网站 【http://www.coderzheaven.com/android tutorials/】 【h 阅读全文
posted @ 2019-11-30 16:28 墨狮 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 【https://dzone.com/articles/java the factory pattern】 【https://dzone.com/articles/the observer pattern using modern java】 【https://java design pattern 阅读全文
posted @ 2019-11-14 17:21 墨狮 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 一、什么是闭包 特征: 函数内部包含匿名子函数,子函数以return返回 子函数可以访问函数内部的局部变量 被子函数持有的局部变量不回被销毁 二、闭包的作用 访问函数的私有变量 外部函数为全局函数的情况下,保证内部私有变量不被回收 类似类的封装,数据为私有变量,操作为return的匿名函数 内存占用 阅读全文
posted @ 2019-10-31 10:33 墨狮 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 生成随机数 rand.Seed 填入随机数种子,一样的种子产生一样的随机数 rand.Intn rand.Intn(n int)得到的随机数int i,0 阅读全文
posted @ 2019-09-25 11:34 墨狮 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 步骤 下载安装包并安装 设置环境变量 Mac配置环境变量的地方 1. /etc/profile(建议不修改这个文件)全局(公有)配置,不管是哪个用户,登录时都会读取该文件。 2. /etc/bashrc(一般在这个文件中添加系统级环境变量)全局(公有)配置,bash shell执行时,不管是何种方式 阅读全文
posted @ 2019-07-10 00:07 墨狮 阅读(166) 评论(0) 推荐(0) 编辑