#include <iostream> #include <string> #define MAX 500 using namespace std; struct person { string name; int age; }; struct contact { person persons[MA ...
分类:
编程语言 时间:
2020-10-05 22:33:17
阅读次数:
48
java 服务端测试代码: @Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { buffer.writeShort(5); buff ...
分类:
编程语言 时间:
2020-10-05 21:23:34
阅读次数:
42
/* 使用方式如下,与DateEdit使用方式基本一致 1、引用组件 2、 <TableDateEdit key={record.id + 'start'} //key随意指定 txtValue={record.planStartTime} //控件需要显示的内容 rowID={record.id} ...
分类:
Web程序 时间:
2020-09-24 21:58:49
阅读次数:
54
题目链接:反转链表 方法一:递归解法 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
分类:
其他好文 时间:
2020-09-24 21:55:20
阅读次数:
37
代码如下 #include<iostream> using namespace std; const int MAXN = 1000 + 5; struct Node // 进去一个出去一个,很明显,队列 { int num; // 保存进去的数字 }; struct Node queue[MAXN ...
分类:
其他好文 时间:
2020-09-24 21:25:32
阅读次数:
42
转自:https://www.cnblogs.com/arnoldlu/p/8329279.html 专题:Linux内存管理专题 关键词:VMA、vm_area_struct、查找/插入/合并VMA、红黑树。 用户进程可以拥有3GB大小的空间,远大于物理内存,那么这些用户进程的虚拟地址空间是如何管 ...
分类:
系统相关 时间:
2020-09-18 17:25:39
阅读次数:
66
桥接模式 定义: “Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the ...
分类:
编程语言 时间:
2020-09-18 17:19:54
阅读次数:
50
###数据结构2-顺序表的建立、删除、遍历和插入操作 #include<stdio.h> #include<iostream> #define MaxSize 10 using namespace std; typedef struct //定义顺序表结构体 { int data[MaxSize]; ...
分类:
其他好文 时间:
2020-09-18 03:31:08
阅读次数:
37
题目大意:有一个激发器,与若干个元件与之相连,它们组成一棵树,叶结点可能不在同一水平线上,你可以花费1代价使得一条导线增加电流的一个单位的传输时间,问至少要使用多少道具才能让叶结点处于统一水平面上。 输入:n 行 a,b,t。表示该条导线连接节点a与节点b,且激励电流通过这条导线需要t个单位时间。 ...
分类:
其他好文 时间:
2020-09-18 01:24:50
阅读次数:
35
MyBatis中javaType和jdbcType的对应关系 jdbcType javaType CHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecim ...
分类:
数据库 时间:
2020-09-18 01:24:37
阅读次数:
38