#include<stdio.h>#define STOP '|'#include<ctype.h>int main(){ char ch; char prev; long n_chars=0L; int n_lines=0; int p_lines=0; int n_words=0; bool i
分类:
其他好文 时间:
2016-03-19 16:02:50
阅读次数:
134
全称:opposite of more 用途:分页显示文件内容,和 more 异曲同工,但是更有弹性 格式:less [-[+]aABcCdeEfFgGiIJKLmMnNqQrRsSuUVwWX~] [-b space] [-h lines] [-j line] [-k keyfile] [-{oO
分类:
系统相关 时间:
2016-03-18 17:26:08
阅读次数:
205
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo
分类:
其他好文 时间:
2016-03-14 11:57:50
阅读次数:
126
<?phpfunction yanghui($lines){ echo '<head id=hd><head/>'; //头部插入css样式 echo '<a id=cow>',$lines,'</a>'; echo '<a id=column>',($lines - $lines%2)/2 + (
分类:
Web程序 时间:
2016-03-12 01:35:52
阅读次数:
237
最近遇到了这样的问题:
如何每次从一个文件里面依次读里面的几行
对nodejs提供的readline和一些三方npm例如lineReader不满意,就自己实现一个简易版本var fs = require('fs');
var data = fs.readFileSync('url.dat', 'utf8');
var lines = data.split("\n");function get_l...
分类:
Web程序 时间:
2016-03-11 17:07:44
阅读次数:
224
老李分享:5个衡量软件质量的标准 1. Sourc Lines of Code (SLOC) 统计代码行数可能是最简单的方法。它能体现软件的规模,为项目的发展和计划提供一些数据支撑。例如,我们每个月统计一次代码的行数,我们就能大体知道项目的发展情况。当然,这不是一个值得信赖的标准,因为有重构以及设计
分类:
其他好文 时间:
2016-03-03 17:37:07
阅读次数:
133
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo
分类:
其他好文 时间:
2016-02-18 21:16:45
阅读次数:
207
编译
gcc -g xxx.c -o xxxgdb
gdb xxxgdb
进入gdb调试界面
查看代码
list ==> l
设置断点 可以以函数为断点 / 行数
break function/lines
查看断点
info breakpoints
执行代码
run ==> 也可以直接输入 r
start ==> 也可以...
分类:
数据库 时间:
2016-02-16 15:07:04
阅读次数:
196
cursor 函数可以使表中嵌套另外一个表。 select pha.po_header_id, pha.segment1, cursor(select pla.line_num, pla.unit_price from po_lines_all pla where pha.po_header_id=
分类:
数据库 时间:
2016-02-16 12:57:49
阅读次数:
178
tail:outputthelastpartoffiles:输出文件尾部tail参数:-c,--bytes=K:outputthelastKbytes;alternatively,use-c+KtooutputbytesstartingwiththeKthofeachfile.:输出文件至倒数K个字符,倒数K字符不会输出(文件每行有后缀)-n,--lines=K:outputthelastKlines,insteadofth..
分类:
系统相关 时间:
2016-01-30 03:08:32
阅读次数:
167