--------------输出----------------print 'hello world'--以文本形式输出select 'hello world'--以网格形式输出,也可以设置成以文本形式输出print 'abc'+'cde'print 3+5print 'ab'+5--出错,'ab'...
分类:
其他好文 时间:
2014-07-27 10:42:52
阅读次数:
275
用STL中的list写的,TLE
#include
#include
#include
#include
#include
using namespace std;
list l;
list::iterator it1,it2,it3,it4,it5,it;
void work(int a,int a1=1,int a2=1)
{
it1=find(l.begin(),l.end(...
分类:
其他好文 时间:
2014-07-26 17:23:02
阅读次数:
815
内部也是相交#include #include #include #include using namespace std;struct point{ int x,y;};struct edge{ point start,end;}line[4],the;void swaped(int &x,int...
分类:
其他好文 时间:
2014-07-26 14:31:00
阅读次数:
272
找出一个递减序列,如果有两个或两个以上递减序列直接no了,然后对递减序列两端数start,end,然后比较a[start]和a[end+1] , a[end] 和a[start-1]
#include
#include
using namespace std;
int a[100005];
int main(){
// freopen("in.txt","r",stdin);
...
分类:
其他好文 时间:
2014-07-26 03:03:26
阅读次数:
220
#foreach($item in ${applyTypes})
$!{item.name}
#end
function receiptAddApplyTyp...
分类:
编程语言 时间:
2014-07-26 02:44:16
阅读次数:
219
一般gdb执行的时候,我们只能输入一个命令.
如:
(gdb) c
(gdb) bt
如果想执行多个命令怎么办? 是否能像bash那样, 使用; 如 ls; ls
结论是不行.
但可以通过gdb 内建函数的的方式来实现:
(gdb) def cbt
>c
>bt 10
>end
(gdb)
也可以追加到 $HOME/.gdbinit下, 每次启动gdb后会自动...
分类:
数据库 时间:
2014-07-26 02:39:16
阅读次数:
245
Delphi异常处理的基本原则和方法 一、异常的来源。在Delphi的应用程序中,下列的情况都比较有可能产生异常。(1)文件处理(2)内存分配(3)Windows资源(4)运行时创建对象和窗体(5)硬件和操作系统冲突二、异常的处理。(1)try…except…end;在try体内的代码发生异常...
分类:
其他好文 时间:
2014-07-26 01:03:16
阅读次数:
251
都是工作中用到的,解决问题至上,不求甚解,怕再忘了,所以记录一下,勿喷。cat xxx.20140725.log |grep ,,2,,1,,|sed 's/,,/\t/g'|cut -f 1,10|awk '{a[$0]++}END{for(i in a) print i}'|awk '{a[$2...
分类:
系统相关 时间:
2014-07-25 14:16:41
阅读次数:
319
1 interface ViewController () 2 3 @property (weak, nonatomic) IBOutlet UITableView *tableView; 4 5 @end 6 7 @implementation ViewController 8 9 ...
分类:
其他好文 时间:
2014-07-25 02:24:44
阅读次数:
248
标签用于通用数据循环,它有以下属性
属 性
描 述
是否必须
缺省值
items
进行循环的项目
否
无
begin
开始条件
否
0
end
结束条件
否
集合中的最后一个项目
step
步长
否
1
var
代表当前项目的变量名
否
无
varStatus
显示循环状态的变量
...
分类:
其他好文 时间:
2014-07-24 23:20:23
阅读次数:
224