异常Throwable:分为:错误Error:主要就是内存溢出等错误,只有关掉重启才能解决问题;异常Exception:运行时异常RuntimeException:运行时发生的异常
一般有空指针异常,数组下标越,除数为0,输入类型不匹配的等异常。编译时异常:这个不是写程序时的错误,那是语法错误...
分类:
其他好文 时间:
2014-07-22 23:14:52
阅读次数:
378
private void button1_Click(object sender, EventArgs
e) { var appWord = new Microsoft.Office.Interop.Word.Application(); ...
分类:
其他好文 时间:
2014-07-22 23:14:16
阅读次数:
383
有人说:virtualenv、fabric 和 pip 是 pythoneer
的三大神器。不管认不认同,至少要先认识一下,pip现在倒是经常用到,virtualenv第一次听说,不过,总得尝试一下吧。一、安装pip install
virtualenv因为我已经安装了pip,那么就直接用pip来安...
分类:
编程语言 时间:
2014-07-22 23:13:55
阅读次数:
477
//华为编程:筷子,找到第一个单对的筷子#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
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) { printf("...
分类:
其他好文 时间:
2014-07-22 23:12:15
阅读次数:
325
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:
其他好文 时间:
2014-07-22 23:11:34
阅读次数:
313
http://anthon-lx.iteye.com/blog/811460完整的错误信息如下:java.sql.SQLException:
Listener refused the connection with the following error:ORA-12505,
TNS:listene...
分类:
数据库 时间:
2014-07-22 23:09:35
阅读次数:
430
基础配置:Hadoop 2.2.0,Hbase
0.96。四台集群机器,一台master,三台slave。三台slave上分别装gmond;namenode机器上设置datasource。客户端:安装wget:sudo
yum -y install wget安装epel库: a) 下载epel r....
分类:
其他好文 时间:
2014-07-22 23:08:34
阅读次数:
573