异常Throwable:分为:错误Error:主要就是内存溢出等错误,只有关掉重启才能解决问题;异常Exception:运行时异常RuntimeException:运行时发生的异常
一般有空指针异常,数组下标越,除数为0,输入类型不匹配的等异常。编译时异常:这个不是写程序时的错误,那是语法错误...
分类:
其他好文 时间:
2014-07-22 23:14:52
阅读次数:
378
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) ...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
339
mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
错误描述:Illegal overloaded getter method with
ambiguous type for property parent in class class cn.domain.Menu. This breaks
the JavaBeans specification a...
分类:
其他好文 时间:
2014-04-30 15:24:40
阅读次数:
6857
c语言实现日历系统,sqlite保存数据库,发现问题不少,特别是数据库的设计,另外,c语言的字符拼接问题也很蛋疼,问题起源如下:起源:在日历中有个功能就是可以设置重复的事件,比如我在日历中加入一个事件,然后可以设置这个事件按天,或者按星期,或者按月,或者按年重复提醒。如果每个事件都是一条记录的话,肯...
分类:
编程语言 时间:
2014-04-30 15:22:04
阅读次数:
427
#网卡类型TYPE=Ethernet#网卡接口名称DEVICE=eth0#系统启动时是否自动加载ONBOOT=yes#启用地址协议 --static:静态协议
--bootp协议 --dhcp协议BOOTPROTO=static#网卡IP地址IPADDR=192.168.1.11#网卡网络地址NET...
分类:
其他好文 时间:
2014-04-30 15:12:24
阅读次数:
351
[DataMapping("Status", DbType.Int16)] public
System.Int16 Status { get; set; } public string StatusValue { get { if (Status
== 0) { return "审核拒绝"; } e...
分类:
数据库 时间:
2014-04-29 16:45:46
阅读次数:
344
使用 adb install
hello.apk可以安装一个apk但并不能启动它,启动它要使用adb shell am的方法启动Activity:adb shell am start -n
包名/包名+类名(-n 类名,-a action,-d date,-m MIME-TYPE,-c catego...
分类:
移动开发 时间:
2014-04-29 16:33:46
阅读次数:
541
1. 在页面的中文变量前添加encodeURIComponent()$.ajax({ type:
"POST", url: "", data:{ id:encodeURIComponent(id), type:encodeURIComponent(type)
...
分类:
其他好文 时间:
2014-04-29 16:25:47
阅读次数:
345