CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - exception
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
assembly language
SCSI-ASPI
ELanguage
Disk Tools
Speech/Voice recognition/combine
Editor
Anti-virus
MultiLanguage
MPI
source in ebook
Delphi VCL
OS Develop
MiddleWare
MacOS develop
LabView
e-language
python
Search - exception - List
[
Other
]
Java异常处理之陋习展播(ZT)
DL : 0
你觉得自己是一个Java专家吗?是否肯定自己已经全面掌握了Java的异常处理机制?在下面这段代码中,你能够迅速找出异常处理的六个问题吗?-you think is a Java expert? Sure they have complete control of the Java exception handling mechanism? Below this code, you can quickly identify anomalies of six?
Date
: 2008-10-13
Size
: 9.02kb
User
:
方脸
[
Other
]
JavaexErciseSource
DL : 0
学习Java的过程中所做的联系的汇总 字符串的输入、字符串转化到整数、异常处理、流 最大公约数和最小公倍数 字符ASCII码的比较 一元二次方程根 求根公式 窗口类、按钮类、窗口中对象(如按钮)的布局、事件、绘图(Paint) 复选框、单选框、列表框、下拉选择框 菜单类、对话框类 绘图、绘图函数 按钮类、标签类 -learning through the process linked to the summary of the input string, the string to integer conversion, exception handling, flow and implements the common denominator ASCII characters in the comparison one yuan quadratic equation - roots formula window type, category buttons, window objects (such as buttons) layout, the incident, mapping (Paint) check box alone selects, list box, the drop-down menu selection box category, the category dialog graphics, mapping function button type, category label
Date
: 2008-10-13
Size
: 2.73kb
User
:
星曦
[
Other
]
doublem
DL : 0
矩阵运算库文件,动态定义了多维数组。其中包括了矩阵的定义,通用矩阵运算,内存管理,异常处理等等。内容很全,从此不必再为动态数组烦恼-matrix calculation libraries, dynamic definition of a multi-dimensional arrays. These include the definition of the matrix, GM matrix calculation, memory management, exception handling, etc.. All content is, henceforth no longer dynamic array troubles
Date
: 2008-10-13
Size
: 6.64kb
User
:
wang yu
[
Other
]
networkfish
DL : 1
是一个客户/服务器程序,运行较复杂 此运用了Java语言的多线程、异常处理、画图、Socket技术、网络传输中的组播等-is a client / server program, the more complicated this operation using the Java language, multithread Exception handling, drawing, Socket technology, network transmission of Multicasting
Date
: 2008-10-13
Size
: 93.13kb
User
:
小马
[
Other
]
Huge
DL : 0
编写一个巨型整数类HugeInt,可以用默认值0或长整型数或字符串进行对象的初始化(构造) 然后用成员、友元或普通函数等重载相应的运算符实现下述功能(必须优化算法、同时进行异常处理):“巨型整数”OP“巨型整数/长整型数/字符串” [其中OP为:加+、减-、乘*、整除/、求余%、复合运算(+=、-=、*=、/=、%=)和关系运算(>、>=、<、<=、!=和==)] “长整型数/字符串”OP “巨型整数”(其中OP为:+、-、*、/、%和关系运算),求负(-巨型整数),巨型整数++、++巨型整数,--巨型整数、巨型整数--,插入(输出)运算符<<。 最后编写一个主函数(测试程序)对以上功能进行全面的测试。-prepared a giant HugeInt type Integer, can use the default value 0 or long integer or string for a few object initialization (Construction) then members Friends yuan or ordinary functions such as heavy corresponding Operators achieve the following functions (must optimization algorithm, Exception handling simultaneously) : "Mega-integer" OP "giant integer / long integer / strings" [which OP :, plus or minus-, x *, divisibility /, I requested% Composite Operators (=,-=,*=,/=,%=) relations and operations (
Date
: 2008-10-13
Size
: 9.76kb
User
:
小吴
[
Other
]
21-8
DL : 0
/* 范例:21-8 自定义例外类 */ 当读者输入y的数值是0的话将会发生异常,并激活异常处理类 程序执行结果﹕ Project p21-8.exe raised exception class DividByZero with message Exception Object Address: 0x69346A . Process stopped. Use Step or Run to continue. Please Input Two Numbers,i除以j, i/j: 5 0 算数异常,x不能除以0,这是自定义异常类! 按Enter键继续...
Date
: 2008-10-13
Size
: 824byte
User
:
sun
[
Other
]
Exception
DL : 0
查找程序运行时错误,保留出错的CONTEXT
Date
: 2008-10-13
Size
: 26.43kb
User
:
mac
[
Other
]
calculator_1
DL : 0
计算器程序You can use Hutch s INCLUDE and LIB files to assemble the program with the exception of the Windows.inc. If you use the EWCalc.mak file you will have to change the pointers to the proper directories.
Date
: 2008-10-13
Size
: 118.77kb
User
:
Rain
[
Other
]
gedebahe
DL : 0
public class gedebahe { public static void main( String [] args) { for ( ) { int a=-1,b,c //b,c是分解出来的两个数 System.out.print(\"Please input a oushu:\") //输入一个偶数 try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) String inputLine = in.readLine() a = Integer.valueOf(inputLine).intValue() }catch (Exception exc) { System.out.println(\"Sorry,please input a number.\") return } if (a%2!=0) { System.out.println(\"Sorry,please input a oushu.\") return } for (b=1 b<a b++) { c=(a-b) if(isPrime(b)&&isPrime(c)) { System.out.println(a+\"=\"+b+\"+\"+c) break } } } } public static boolean isPrime(int k)//方法用来判断一个数是否为偶数 { int a boolean t = true if (k==1) return t for (a=2 a<k a++) { if (k%a==0) break } if (a!=k) t=false return t-gedebahe public class (public static void main (String [] args) (for () (int a = a, b, c / / b, c is the decomposition of the two several System.out.print ( "Please input a oushu : ") / / input an even try (BufferedReader in = new BufferedReader (new InputStreamReader (System.in)) = String inputLine in.readLine () a = Integer.valueOf (inputLine). intValue ()) catch (Exception exc) ( System.out.println ( "Sorry, please input a number.") return) if (a 2%! = 0) (System.out.println ( "Sorry, please input a oushu.") return) for (b = a blt; a b) (c = (a-b) if (isPrime (b) isPrime (c)) (System.out.println (a "=" b "" c) break)))) public static boolean isPrime (int k) / / method used to determine whether a number is even (int a boolean true if t =
Date
: 2008-10-13
Size
: 881byte
User
:
康健伟
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.