#include<iostream>//本线性表的last为个数,例如last为5,线性表值从0-4#include<cstdlib> const int defaultsize = 100; using namespace std; template<class T>class SeqList{p ...
分类:
其他好文 时间:
2016-09-18 08:55:24
阅读次数:
187
查看系统基本信息: hostname | uname -n uname -r uname -a cat /etc/redhat-release lsblk blkid //查看磁盘号 du -sh //查看当前目录 du -sh /home //查看目录的使用空间 last //查看系统什么时候重启 ...
分类:
其他好文 时间:
2016-09-17 16:09:50
阅读次数:
148
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2016-09-17 00:20:22
阅读次数:
132
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2016-09-14 12:45:55
阅读次数:
144
1:创建一个双向队列 list = { first =1,last = 0} function list:pushFirst(value) --从头放入一个 value local f = self.first-1 -- f=0 self[f] = value --self[0] = value s ...
分类:
其他好文 时间:
2016-09-14 12:42:32
阅读次数:
108
if (window.DeviceMotionEvent) { window.addEventListener('devicemotion',deviceMotionHandler, false); } var SHAKE_THRESHOLD = 800; var last_update = 0; ...
分类:
Web程序 时间:
2016-09-14 12:36:20
阅读次数:
181
4、cookie的获取与set 3、session localStorage 和 sessionStorage之间的区别 2、Cache Control和expires 与last-Modified 和 Etag之间的区别 1、http2.0和http1.1之间的区别 ...
分类:
其他好文 时间:
2016-09-14 12:35:51
阅读次数:
147
首先我在数据库里建了两张表,一个是用户的积分表,一个是签到状态表,分来用来记录用户的积分数和先到状态 在用户签到状态表中我们有一个字段,last_sign_time,即上一次签到时间,每次可以签到的时候把这个时间与当前时间进行比较 如果相差为0天,则说明今天已签到(这个签到是24小时内只能签到一次, ...
分类:
Web程序 时间:
2016-09-14 07:07:43
阅读次数:
187
1. for in loop形式 DECLARE CURSOR c_sal IS SELECT employee_id, first_name || last_name ename, salary FROM employees ; BEGIN --隐含打开游标 FOR v_sal IN c_sal ...
分类:
数据库 时间:
2016-09-12 14:09:16
阅读次数:
863
概念: 所谓子查询,即一个select语句中嵌套了另外的一个或者多个select语句 需求:查找和Smith同部门的所有员工的id和last_name 目标: 员工id,last_name from: s_emp 条件: s_emp.dept_id = Smith所在部门的id? select id ...
分类:
数据库 时间:
2016-09-10 19:12:12
阅读次数:
251