经常用这三个命令 到如今才弄清一二 ctrl +c ?中断当前程序执行 ctrl +d 类似于 EOF end of file end of input ,相当于输入exit man + command? ^C
[devtac@test_1?~]$?man?ls
LS(1)???????????...
分类:
系统相关 时间:
2014-09-19 19:48:36
阅读次数:
274
要用bedtools了, 当然要熟悉bed文件格式一共十二列1, chrom 不解释2, start, 0-based3, end, 说明书说是1-based, include。 不如理解为0-based, exclude4, name, genome feature 的名字5, score, 没什...
分类:
其他好文 时间:
2014-09-19 18:57:55
阅读次数:
354
OC中只能使用指针变量来间接操作对象类的声明使用的关键字是@interface@interface 类名@end结尾的@end表示类声明结束类的实现使用的关键字是@implementation@implementation类名@end结尾需要加上@end,告诉编译器类实现完毕/* 类名:Car .....
分类:
其他好文 时间:
2014-09-19 18:53:15
阅读次数:
162
android:layout_below="@id/rl_userinfo"是指位置在id为rl_userinfo控件的下方
android:layout_marginBottom="@dimen/margin_superlarge"是定义外向向下的距离
android:ellipsize="end"指text显示效果当text超出控...
分类:
其他好文 时间:
2014-09-19 17:49:06
阅读次数:
205
textview添加属性:android:singleLine="true" 表示单行显示android:ellipsize="marquee"设置当文字过长时,该控件该如何显示。有如下值设置:”start”—–省略号显示在开头;”end”——省略号显示在结尾;”middle”—-省略号显示在中间;...
分类:
其他好文 时间:
2014-09-19 17:10:15
阅读次数:
195
//通知中心广播站建立
//1.head.h
#import<Foundation/Foundation.h>
@interfaceBJBroadcast:NSObject
-(void)sendBroadCast;
-(void)sendBroadCastLoop;
@end
//2.implementation
#import"BJBroadcast.h"
@implementationBJBroadcast
-(void)sendBroadCastLoop
{
//..
分类:
其他好文 时间:
2014-09-19 12:17:16
阅读次数:
252
题意:模拟一个文本编辑器,可以输入字母数字下划线,如果遇到'['则认为是Home键,如果是']'则认作End键。问最终屏幕上显示的结果是什么字符串。分析:如果在数组用大量的移动字符必然很耗时。所以next数组表示显示屏中s[i]右边的字符编号,变量cur模拟光标,即当前光标位于s[cur]的右边。变...
分类:
其他好文 时间:
2014-09-18 22:14:14
阅读次数:
225
快速排序
void quick_sort(int array[], int begin, int end)
{
if(end > begin)
{
int pivot = begin;
int last_small = begin;
int i = end;
while(last_small != i)
{
if(array[i] <= array[pivot])
...
分类:
其他好文 时间:
2014-09-18 18:54:34
阅读次数:
181
控件获取有两种方式:1. IBOutlet:直接拖拽需要的控件到界面设计文件 *.h 的@interface和@end之间2. Tag:设置tag为12,通过如下代码获取lableUILabel* lable = (UILabel*) [self.view viewWithTag:12];but.....
分类:
移动开发 时间:
2014-09-18 18:46:34
阅读次数:
241
select HSL.sortno, HSL.B, HSL.A, row_number() over(order by sortno desc) xh from (select t.B, t.A, case when t.B= '股份公司' then 9999999 else t.A end as....
分类:
数据库 时间:
2014-09-18 18:10:24
阅读次数:
216