码迷,mamicode.com
首页 >  
搜索关键字:catch    ( 5435个结果
POJ3278——Catch That Cow
Catch That CowDescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0...
分类:其他好文   时间:2014-06-05 19:54:29    阅读次数:298
MapReduce实现排序功能
期间遇到了无法转value的值为int型,我采用try catch解决 str2 2 str1 1 str3 3 str1 4 str4 7 str2 5 str3 9 用的\t隔开,得到结果  str1 1,4  str2 2,5 str3 3,9 str4 7 我这里map,reduce都是单独出来的类,用了自定义的key package com.kan...
分类:其他好文   时间:2014-06-05 06:52:38    阅读次数:353
一些特殊代码的注释
今天下午在看vlc 播放器的源码的时候,发现里面有一些特殊的注释信息, 比如: FIXME, 而且在eclipse中其颜色是不同的,所以我上网搜索了一下,发现一些特殊的注释 1  TODO eclispe中自动生成的部分代码也会有这个问题,比如try catch。意思是有待完成。 2  FIXME 代码中需要修改或者有待改进的代码 3  XXX  错误的代码,需要改正的...
分类:其他好文   时间:2014-06-05 01:26:33    阅读次数:208
[转] try catch finally 执行顺序
结论:1、不管有木有出现异常,finally块中代码都会执行;2、当try和catch中有return时,finally仍然会执行;3、finally是在return后面的表达式运算后执行的(此时并没有返回运算后的值,而是先把要返回的值保存起来,管finally中的代码怎么样,返回的值都不会改变,任...
分类:其他好文   时间:2014-06-03 15:03:33    阅读次数:250
java 关键字与保留字
Java 关键字列表 (依字母排序 共51组),所有的关键字都是小写,在MyEclipse中都会显示不同的颜色: abstract, assert,boolean, break, byte, case, catch, char, class, const, continue, default, do...
分类:编程语言   时间:2014-06-03 14:44:01    阅读次数:453
HDU2717-Catch That Cow
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,0...
分类:其他好文   时间:2014-06-03 05:30:23    阅读次数:394
Find them, Catch them
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:其他好文   时间:2014-06-02 09:38:19    阅读次数:219
在zend framework框架中try{}catch(Exception e){}的跳转问题
在zend framework框架中try{}catch(Exception e){}的跳转问题...
分类:其他好文   时间:2014-06-01 09:56:19    阅读次数:225
poj3278(Catch That Cow)
题目大意: 一个农主寻找牛。给出农主的位置n和牛的位置k。农主可以通过n-1或者n+1或者n*2的步伐找牛,问至少多少步才能找到自己的牛。解题思路: 简单的BFS。把农主的每一种可能的步伐通过BFS存到栈中,然后看最少多少步到达K坐标。代码: 1 #include 2 #include 3 ...
分类:其他好文   时间:2014-05-31 15:27:27    阅读次数:252
Java异常处理机制的秘密
一般的try...catch...finally没什么好说的,但你可曾想过在try/catch/finally中throw/return?为什么要想这些没用的东西?因为这种东西曾出现在了笔试题目中。
分类:编程语言   时间:2014-05-30 23:42:06    阅读次数:520
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!