本次内容:异常机制1、为什么需要异常2、异常3、error类4、exception类5、exception类中的unchecked
exception 举例:6、常用异常处理方法a.try注意:一个try语句块至少得带一个finally语句块或catch语句块 1 package
array; 2....
分类:
编程语言 时间:
2014-05-12 16:17:54
阅读次数:
406
安装libpng,出现“configure: error: ZLib not
installed”。
解决方法:
1. 进入ZLib的安装包,不必加--prefix参数命令:
./configure
make && make install
2. 进入libpng解压缩包中,输入:
./configure --prefix=/...
分类:
其他好文 时间:
2014-05-02 22:38:51
阅读次数:
289
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=502&page=show_problem&problem=3720
唯一值得一说的就是shift,变成循环就行
这道题主要是测试下我做的算法模板
先贴模板
/**********************************...
分类:
其他好文 时间:
2014-05-02 21:29:31
阅读次数:
345
1. 自定义验证--成功提示
1) 添加选项
errorClass: "unchecked",
validClass: "checked",
errorElement: "span",
errorPlacement: function (error, element) {
if (element.parent().find("span[for=""" + element.attr("id...
分类:
Web程序 时间:
2014-05-02 18:38:21
阅读次数:
467
查看是否能启动WiFi网卡:S1:运行cmd命令,打开命令提示符窗口(以管理员身份运行)。S2:在命令行输入:netsh wlan show
drivers。若“支持的承载网络”后为“是”,则可以启用虚拟wifi网卡;“否”则不可以。启用虚拟WiFi网卡:S1:在命令行中输入:netsh wlan
...
今天,所谓的劳动节,其实只是给予大部分行业的人,但是对于技术类或者是服务行业,都是没有所谓的休息假期。因为每次放假,反而是一个商机。
早上,刚整理完店面摆设,没多久就来了一位客户需要重装电脑。说电脑中毒,一开机检测, disk error, 问是否需要保存资料,得到的是“...
分类:
其他好文 时间:
2014-05-02 12:47:30
阅读次数:
354
出现下列错误:
mlogc.c:32:23: error: curl/curl.h: No such file or directory
mlogc.c:1091: error: expected ‘)’ before ‘*’ token
mlogc.c: In function ‘logc_init’:
出错原因:缺少libcurl-dev or libcurl-devel
...
分类:
其他好文 时间:
2014-05-02 10:50:35
阅读次数:
371
编译Lua时,出现这样的错误:
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error:
查阅了一下,centOS上需要安装readline-devel ncurses-devel
yum install readline-devel ncurses-devel
...
分类:
系统相关 时间:
2014-05-02 07:03:00
阅读次数:
455
链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=36
叼伱个扑街,对呢道题真系无语,,提交5次都过唔到,唔相信既话,伱地可以试下啦。。。
偶噶代码:
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-04-30 22:16:39
阅读次数:
319
示例代码将在注册表位置:HKEY_CURRENT_USER\Software\ 读写键值
bool LicenseManage::OpenRegKey(HKEY& hRetKey)
{
if (ERROR_SUCCESS == RegOpenKey(HKEY_CURRENT_USER,"Software", &hRetKey))
{
return true;
...
分类:
其他好文 时间:
2014-04-30 22:12:40
阅读次数:
195