Redis的客户端介绍,一种是Redis Desktop Manager,一种是Redis Plus。在IDEA中使用Iedis插件连接Redis。 ...
分类:
其他好文 时间:
2020-11-04 17:56:18
阅读次数:
39
方法一: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Web.Services.Description; usi ...
分类:
Web程序 时间:
2020-11-04 17:48:18
阅读次数:
35
FragmentPagerAdapter:该类中每一个生成的Fragment都将保存在内存中,所以缺点非常明显,对于存在相对较多的fragment,程序将会吃掉非常多的内容。所以FragmentPagerAdapter适合那些相数量相对较少,静态的页面。对于存在多个fragment的情况,一般推荐使 ...
分类:
其他好文 时间:
2020-11-04 17:46:37
阅读次数:
14
1 #include <bits/stdc++.h> 2 using namespace std; 3 const int mac=4e5+50; 4 int head[mac],vis[mac],dis[mac]; 5 int n,m,num,i,j,t; 6 struct edge{ 7 int ...
分类:
其他好文 时间:
2020-11-04 17:45:08
阅读次数:
15
链表和链表节点的实现 Redis 每个链表节点使用一个 adlist.h/listNode 结构来表示: typedef struct listNode { // 前置节点 struct listNode *prev; // 后置节点 struct listNode *next; // 节点的值 v ...
分类:
其他好文 时间:
2020-11-04 17:37:06
阅读次数:
16
一、什么是 AOP? AOP就是面向切面的编程,是一种通过预编译方式和运行期动态代理实现程序功能的统一维护的技术。通过AOP技术,我们可以对业务逻辑的各个部分进行分拆,从而使得业务逻辑各部分之间的耦合度降低,提高程序的可重用性,同时提高了开发的效率。 二、Android 中使用AOP场景 1. 可以 ...
分类:
移动开发 时间:
2020-11-02 10:40:38
阅读次数:
38
#include <iostream> typedef struct node { int nVal; node* pNext; node(int val) : nVal(val), pNext(nullptr) {} }; // create node* create_link(int nNode ...
分类:
其他好文 时间:
2020-11-02 09:58:50
阅读次数:
18
在Java中,创建对象实例的时候,按照如下顺序进行初始化: 1.先初始化字段,例如,int age = 10;表示字段初始化为10,double salary;表示字段默认初始化为0,String name;表示引用类型字段默认初始化为null; 2.执行构造方法的代码进行初始化。 总结:在初始化字 ...
分类:
编程语言 时间:
2020-11-02 09:56:56
阅读次数:
27
#include<stdio.h> #include<string.h> #include<stdlib.h> 1、提供一个顺序存储的栈 #define max 1024 struct sstack { void * data[max]; //栈的数组 int m_size; //栈大小 }; ty ...
分类:
其他好文 时间:
2020-11-01 22:08:22
阅读次数:
16
#include <stdio.h> #include <stdlib.h> //数组的应用:顺序表【线性表的一种存储方式】 struct Arr { int * pBase; //保存首地址 int len; //数组的总长度 int cet; //cet: current efficient(当 ...
分类:
编程语言 时间:
2020-11-01 22:05:49
阅读次数:
23