做人呢就要有始有终不是么。。我还是把这个翻译完了事。Coding with C++With the C++ project finally set up, it's time to start adding some code. We'll start with the NativeAdd.h fi...
分类:
编程语言 时间:
2014-09-12 17:06:33
阅读次数:
252
测试的机器是acer 4750g, GT540M转自http://www.linuxidc.com/Linux/2012-07/66193.htm和http://duxyng.wordpress.com/2012/01/26/finally-working-nvidia-optimus-on-fed...
分类:
系统相关 时间:
2014-09-12 14:53:03
阅读次数:
464
.NET的异常处理机制用来发现、处理运行时错误。如果开发人员没有提供异常的处理机制,就默认采用.NET的机制。 通常使用try...catch...finally捕获异常。try
{ //有可能发生异常
}
catch(Exception ex)
{ //处理异常
}
finally
{ //清理
...
分类:
其他好文 时间:
2014-09-10 23:47:11
阅读次数:
234
今天写程序遇到一个问题,就是需要在while循环抛异常的时候把数据return出去。发现try块放在while循环外面是正确的。
privatestaticvoidtest5(){
intcount=1;
while(count<100){
count++;
try{
}catch(Exceptione){
}finally{
System.out.println("final:"+c..
分类:
编程语言 时间:
2014-09-10 19:47:31
阅读次数:
241
8.1 函数定义: 变量声明提前,但是变量赋值并不会提前 函数声明语句不能出现在循环,条件判断或者try/catch/finally以及with语句中:8.2 函数调用(函数调用,方法调用,构造函数调用,间接调用(call,apply)) 1、var isStrict = (function(...
分类:
编程语言 时间:
2014-09-10 12:20:10
阅读次数:
277
所谓的后台线程,是指在程序运行的时候在后台提供一种通用服务的线程,并且这种线程并不属于程序中不可或缺的部分。因此当所有的非后台线程结束时,程序也就终止了,同时会杀死所有后台线程。反过来说,只要有任何非后台线程(用户线程)还在运行,程序就不会终止。后台线程在不执行finally子句的情况下就会终止其r...
分类:
编程语言 时间:
2014-09-09 17:58:39
阅读次数:
197
Tried to install Ubuntu desktop on my Dell Inspiron 1420 but failed, finally work around it and solved the problem. All the problems encountered might be caused by my computer graphical card "NVIDIA GeForece 8400M GS", it has hardware failure before and I ...
分类:
其他好文 时间:
2014-09-09 16:13:09
阅读次数:
266
下载了eclipse很久了,除了JFrame和BigInteger之外,还没怎么用过java其他的功能。值此学android之际,顺便学学Java基础。 一、try, catch, finally 这组关键字说是用在调试工程的时候比较方便,因为即使程序发生错误,它也不会直接报错而结束程序,而...
分类:
编程语言 时间:
2014-09-06 22:26:53
阅读次数:
324
Description
After 4 years' waiting, the game "Chinese Paladin 5" finally comes out. Tomato is a crazy fan, and luckily he got the first release. Now he is at home, ready to begin his journey. But b...
分类:
其他好文 时间:
2014-09-05 18:21:51
阅读次数:
299
1.捕获异常 try { //lots of code... } catch(error)( //user error... //catch 代码块不是必需的 )finally{ //wrap up... //finally代码块不是必需的,但是finally代码块不论有没有异常都一定会执行的; }...
分类:
其他好文 时间:
2014-09-01 19:24:23
阅读次数:
197