/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:
其他好文 时间:
2021-05-25 18:31:40
阅读次数:
0
设计模式——单例模式 概念: 单例模式是设计模式中很常见的一种模式,各种框架,系统中都有应用。 其定义是单例对象的类只能允许一个实例存在。在许多时候整个系统只需要拥有一个全局对象,这样有利于我们系统系统整体的行为。 实现主要是以下两个步骤: 将该类的构造方法定义为私有方法,这样其他处的代码就无法通过 ...
分类:
其他好文 时间:
2021-05-25 18:30:08
阅读次数:
0
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:
其他好文 时间:
2021-05-25 18:29:12
阅读次数:
0
C语言 #include "stdbool.h" #define NULL ((void *)0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:
编程语言 时间:
2021-05-25 17:51:01
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0
常见的虚拟化产品有4款:分别是VMware、HyherV、Xen、KVM 1.VMware VMware是最早的X86 平台上的虚拟化引擎,1994年就发布了第一款产品,经过十几年的发展和市场检验,产品成熟、稳定、兼容性也不错。VMware的产品线非常全面,不仅有虚拟化的解决方案,在IaaS、Saa ...
分类:
其他好文 时间:
2021-05-24 17:04:13
阅读次数:
0
偶然在代码中看到这样一个定义: typedef union { unsigned char byte; /**< the whole byte */ struct { unsigned int retain : 1; /**< retained flag bit */ unsigned int qo ...
分类:
其他好文 时间:
2021-05-24 16:41:35
阅读次数:
0
import java.util.LinkedList; import java.util.Scanner; class TreeNode{ char val; TreeNode leftchild; TreeNode rightchild; int flag;//用于后续非递归 } public ...
分类:
其他好文 时间:
2021-05-24 15:37:05
阅读次数:
0
结构体写法形式有点像枚举,本身意义更像数组,但可以是一组不同类型的数据。 1,用结构体表示一本书的数据: struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } book; 结构体的形式: s ...
分类:
编程语言 时间:
2021-05-24 15:27:15
阅读次数:
0
一、课程内容梳理 系统概念模型 使用高级软件工程中学习的drawio工具对课程内容分块进行梳理概括并绘制linux系统相关部分模型如下 1.中断处理 2.时钟体系 3.文件系统 4.文件系统挂载 5.驱动程序 6.进程调度 验证模型 例1:读写文件 选取文件系统模型 在系统打开文件表项struct ...
分类:
其他好文 时间:
2021-05-24 15:11:42
阅读次数:
0