码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
awk 常用
awk‘{printNR}‘aa.txt 变量NR,记录号awk‘END{print}‘aa.txt最后一行awk‘/22$/‘aa.txt 以22结尾的awk‘/^birdman/‘aa.txt 以birdman开头的的awk‘/\<^birdman.*22$\>/‘aa.txt 以birdman开头22结尾的行awk‘/\<^birdman.*22$\>/{print$2}‘aa.txt 以birdman开头22结尾的..
分类:其他好文   时间:2014-08-26 19:51:07    阅读次数:195
POJ 2356 (抽屉原理)
题目中说:随便输出一组。抽屉原理可以求出取出的数连续的情况。#include #includeusing namespace std;int a[10005],s[10005];int n,start,end,ok = 0;int main(){ while(scanf("%d",&n) !=...
分类:其他好文   时间:2014-08-26 19:24:36    阅读次数:183
快速排序深入
快速排序的分治的两种实现方式1,两个指针分别从前面和后面向中间移动// 快速排序有两种partition的方式 // 方式一:两个指针从两端向中间靠拢 private int partation1(int[] array, int start, int end) { int...
分类:其他好文   时间:2014-08-26 19:18:06    阅读次数:178
Sql语句-case when then else end
根据上面的表信息输出下面的结果: 下面是建库和表结构据: create table DeptSales ( deptID int, SubjMonth int , sales int , deptname varchar(50) ) insert into deptsales (deptid ,subjmonth,sales) values (1,1,55); in...
分类:数据库   时间:2014-08-26 17:21:36    阅读次数:247
mysql 存储过程
1.1 CREATE PROCEDURE (创建)CREATE PROCEDURE存储过程名 (参数列表)BEGIN SQL语句代码块END注意:由括号包围的参数列必须总是存在。如果没有参数,也该使用一个空参数列()。每个参数默认都是一个IN参数。要指定为其它参数,可在参数名之前使用关键词 OUT或...
分类:数据库   时间:2014-08-26 16:49:16    阅读次数:224
ios7 tableViewCell 图片显示不居中
@interface MyProfileViewCell : UITableViewCell@end@implementation MyProfileViewCell- (void)layoutSubviews{ [super layoutSubviews]; CGRect frame ...
分类:移动开发   时间:2014-08-26 13:09:26    阅读次数:172
js获取地址栏某个参数
一、获取单个参数:若地址栏URL为:abc.html?id=123function getString(){ var locurl=location.href; var start=locurl.indexOf("?"); var end=locurl.length; var tempstr=loc...
分类:Web程序   时间:2014-08-26 11:34:55    阅读次数:169
定时往oracle插入数据
1创建存储过程create or replace procedure job_proc isbegininsert into yy (yid) values (sysdate);end;2创建jobDECLARE JOB BINARY_INTEGER; --任务ID v_be...
分类:数据库   时间:2014-08-26 11:16:35    阅读次数:242
导演(Director)
// 初始化auto director = Director::getInstance();// 关闭游戏Director::getInstance()->end();
分类:其他好文   时间:2014-08-26 11:05:55    阅读次数:198
简易计算器制作
@interface EricAppDelegate () { UIView *_containView; UILabel *_label; UIButton *_butt; NSMutableString *str; } @property(assign,nonatomic)double num1,num2,num3,num4; @end @implementa...
分类:其他好文   时间:2014-08-26 09:56:45    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!