-
read data weighed
读取过磅系统数据-read data weighed
- 2022-12-03 20:00:03下载
- 积分:1
-
处理zip压缩格式的VC代码
处理zip压缩格式的VC代码-handle zip code format VC
- 2022-08-15 09:20:53下载
- 积分:1
-
用OpenGL编制的显示两个不同形式的矩形的程序。
用OpenGL编制的显示两个不同形式的矩形的程序。-Compiled with the OpenGL display two different forms of the rectangle procedure.
- 2023-04-09 08:25:03下载
- 积分:1
-
java异常处理
3.8 异常处理
什么是异常
知道Java异常分类
处理异常的两种方式
throw和throws区别
如何创建自定义异常
概念:
在程序中,可能产生程序员没有预料到的各种错误情况,比如打开一个不存在的文件等,在Java中,这种在程序运行时可能出现的错误称为异常。
异常可以把“描述在正常执行过程中做什么事”的代码和“出了问题怎么办”的代码相分离
例子:demo05.ExceptionDemo.java
Java异常分类A:
java.lang.Error,java.lang.Exception
Error(错误):jvm系统内部错误、资源耗尽等严重问题,发生Error时,编程人员无能 为力,只能终止程序,例如内存溢出等。
Exception(异常):因编程错误或偶然的外在因素导致的一般性问题,例如:对负数 开平方根、空指针访问等,当发生Exception 时,编程人员可以做出处理,并做出人性 化响应,比如弹出窗口,显示“请不要输入负数!”。
异常分类B:
检查性异常:编译器必须处理的异常,该类异常通常是Exception类型或其子类(RuntimeException类除外)//运行时异常
SQLException、IOException、ClassNotFoundException
例子:/DemoProject/src/com/hyg/demo08/FileInputStreamDemo.java
非检查性异常:编译器不要求强制处理的异常,RuntimeException类及其所有子类都是非检查性异常。
NullPointerException、ClassCastException
例子:equa
- 2022-02-14 14:02:16下载
- 积分:1
-
将数据从串口数据从gsm接受收器中读出,显示出来
将数据从串口数据从gsm接受收器中读出,显示出来-Data from the serial port to accept data from the collection device in gsm read out, displayed
- 2022-09-21 03:00:02下载
- 积分:1
-
高斯算子对图像进行平滑,附源码和测试图片
高斯算子对图像进行平滑,附源码和测试图片-Gaussian operator for smoothing the image, with source code and test images
- 2023-02-16 18:25:04下载
- 积分:1
-
21天学通C++,Jesse Liberty 和Bradley Jones编著 第五版课程上面的程序案例。...
21天学通C++,Jesse Liberty 和Bradley Jones编著 第五版课程上面的程序案例。-21-day study-pass C++, Jesse Liberty and Bradley Jones compiled the fifth edition of the course the above procedure cases.
- 2022-01-30 20:59:34下载
- 积分:1
-
PHP 中的在线测试
这是一个在线的 PHP 测验项目。其前端是致力于 PHP 程序的任何浏览器后, 端是 mysql。Wamp 来必须安装,运行这个测试。希望你会喜欢它。
- 2022-04-23 17:01:37下载
- 积分:1
-
本书主要介绍了运用Visual C++ 5.0或6.0的高级编程技巧,内容涉及MFC程序设计的最新概念,全书提供了大量VC的编程实例,旨在帮助读者较为全面地掌握
本书主要介绍了运用Visual C++ 5.0或6.0的高级编程技巧,内容涉及MFC程序设计的最新概念,全书提供了大量VC的编程实例,旨在帮助读者较为全面地掌握VC编程知识、技巧和方法。全书分为三个部分和附录。第一部分介绍Windows编程的基础知识,第二部分讲解用户界面编程技巧,最后一部分涉及Windows内部进程的一些实例。本书思路清晰,实用性强,是计算机应用人员及大专院校师生不可多得的参考书。 -the book introduces the use of Visual C 5.0 or 6.0, the advanced programming skills, MFC procedures covering the latest design concepts, the book provides a lot of VC programming examples to help readers a more comprehensive grasp VC programming knowledge, skills and methods. The book is divided into three parts and appendices. The first part gives Windows programming knowledge base, the second part on the user interface programming skills, the last part of the internal processes involved in the Windows examples. This book has clear ideas, practical, computer applications officers and tertiary students rare reference books.
- 2023-03-23 06:00:04下载
- 积分:1
-
最小生成树.rar
最小生成树.rar-minimum spanning tree. Rar
- 2023-08-27 05:30:03下载
- 积分:1