码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
Oracle中的SQL%ROWCOUNT
sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:SQL> declare n number; 2 begin 3 insert into t...
分类:数据库   时间:2014-05-07 17:21:07    阅读次数:386
带缓冲的IO和不带缓冲的IO
文件描述符:文件描述符是一个小的非负整数,是内核用来标识特定进程正在访问的文件标准输入/输出/出错:shell为每个程序打开了三个文件描述符,STDIN_FILEON,STDOUT_FILEON,STDERR_FILEON,默认这三个文件描述符都链向终端不带缓冲的IO:函数open read wri...
分类:其他好文   时间:2014-05-07 17:13:03    阅读次数:284
poj 1410 Intersection
DescriptionYou are to write a program that has to decide whether a given line segment intersects a given rectangle.An example:line: start point: (4,9)...
分类:其他好文   时间:2014-05-07 13:55:45    阅读次数:387
21天战拖记——Day3:今天起得早,全天要过好(2014-05-06)
21天战拖记——Day3:今天起得早,全天要过好(2014-05-06)
分类:其他好文   时间:2014-05-07 13:27:30    阅读次数:215
快速排序
void quickSort2(int a[], int l, int r) { if (l < r) { int i = l, j = r; int x = a[l]; while (i < j) { while (i = x) { j--; } if (i < j) { a[i++] = a[j]; } whi...
分类:其他好文   时间:2014-05-07 12:03:15    阅读次数:269
POJ3714 最近点对
变形了的最近点对,关键在于计算距离的时候,如果同类点的话,直接判定为无穷大即可。 其他闲话: (1)因为一些原因,被迫暂时用回C++. (2)好久没刷题,忘记了数组一开始要开最大,多次new和delete,导致超时。 (3) 感觉算法导论的最近点对没有考虑到有多个点都在一条vertical line上的情形。 #include #include #include #include...
分类:其他好文   时间:2014-05-07 11:29:11    阅读次数:334
自定义popupmenu菜单背景色
procedure TForm1.N11DrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; Selected: Boolean);beginIf (Selected) ThenbeginACanvas.Font.Color := clW...
分类:其他好文   时间:2014-05-07 10:52:51    阅读次数:283
jsb里出现的 Invalid Native Object的一次bug修复的思考
Cocos2d: jsb: ERROR: File /Users/dcx_JD/Documents/cocos2d-x-2.2.2/scripting/javascript/bindings/generated/jsb_cocos2dx_auto.cpp: Line: 4911, Function:...
分类:Web程序   时间:2014-05-07 00:41:38    阅读次数:446
括号匹配(栈的应用)
#include #include #include using namespace std;int main(){ int n;cin>>n; while(n--){ stack s; string str;cin>>str; for(int ...
分类:其他好文   时间:2014-05-07 00:19:41    阅读次数:356
Last non-zero Digit in N!
Problem DescriptionThe expression N!, read as "N factorial," denotes the product of the first N positive integers, where N is nonnegative. So, for exa...
分类:其他好文   时间:2014-05-07 00:11:55    阅读次数:353
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!