- 博客(19)
- 收藏
- 关注
转载 关于throws和throw和try{}catch(){}的区别和联系
throws是用来声明一个方法可能抛出的所有异常信息 throw则是指抛出的一个具体的异常类型。 通常在一个方法(类)的声明处通过throws声明方法(类)可能抛出的异常信息,而在方法(类)内部通过throw声明一个具体的异常信息。 throws通常不用显示的捕获异常,可由系统自动将所有捕获的异常信息抛给上级方法; throw则需要用户自己捕获相关的异常,而后在对其进行相关包装,最后再将包装
2017-02-07 19:10:14
5760
转载 eclipse出现不编译工程的现象。怎么刷新classes目录下也是空的.
eclipse出现不编译工程的现象。怎么刷新classes目录下也是空的. 具体操作: 打开project->build automatically 试后不行,还是不编译. 打开project –> build automatically 另外 clean一下就可能会编译了,结果还不行. eclipse默认是选自动编译。即使取消自动编译,手动build工程,也不能编译。出现这种情况一般有
2017-02-07 18:52:12
6706
转载 request.getContextPath()
request.getContextPath()是在开发Web项目时,经常用到的方法,其作用是获取当前的系统路径。当使用Tomcat作为Web服务器,项目一般部署在Tomcat下的webapps的目录下。具体来说主要用两种部署的路径:一是将web项目中的webRoot下的文件直接拷贝到webapps/ROOT下(删除ROOT下的原有文件);另一中方法在Tomcat下的webapps中创建以项目名称命
2017-02-07 18:49:06
2115
转载 关于html标签中b和strong,i与em两个的区别(物理标记和逻辑标记)
因为两者所达到的效果一样,所以人们就没有太在意这两个到底有什么区别,那么今天我来告诉大家,是有区别的。 它们的区别就再于一个是物理标记,一个是逻辑标记。什么是物理标记?什么是逻辑标记? 物理元素所强调的是一种物理行为,比如说我把一段文字用b标记加粗了,我的意思是告诉浏览器应该给我加粗了显示这段文字,从单词的语义也可以分析得出,b是Bold(加粗)的简写,所以这个
2016-05-10 22:05:34
1813
转载 关于qsort函数
qsort,包含在stdlib.h头文件里,函数一共四个参数,没返回值. 一个典型的qsort的写法如下qsort(s,n,sizeof(s[0]),cmp);其中第一个参数是参与排序的数组名(或者也可以理解成开始排序的地址,因为可以写s[i]这样的表达式); 第二个参数是参与排序的元素个数; 第三个参数是单个元素的大小,推荐使用sizeof(s[0])这样的表达式; 第四
2016-04-04 22:16:35
1158
转载 void类型及void指针
转自:http://www.cnblogs.com/pengyingh/articles/2407267.html1.概述 许多初学者对C/C 语言中的void及void指针类型不甚理解,因此在使用上出现了一些错误。本文将对void关键字的深刻含义进行解说,并 详述void及void指针类型的使用方法与技巧。 2.void的含义 void的字面意思是“无类型”,void
2016-04-04 22:02:19
313
原创 1.3.1_HDOJ_FatMouse'Trade
Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N rooms. The i-th room conta
2016-04-04 21:34:38
296
原创 基础CSS笔记(一)
一每种浏览器都有其默认的页面格式,但是各个浏览器之前的默认格式差异不大。我们在学习CSS的时候需要知道有默认格式的存在,以便于再以后编辑CSS时有效的利用或者克服不同浏览器之前的默认格式,使自己设计的网站能兼容更多的浏览器。二CSS 中有三类选择器:ID选择器,类选择器,标签选择器 css中的格式
2016-04-04 00:52:51
415
原创 1.2.2 Box of Bricks
Problem DescriptionLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. “Look, I\'ve built a wall!”, he tells his older sister
2016-03-27 00:47:59
284
原创 1.2.1 Elevator
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified
2016-03-27 00:36:40
406
原创 HDU_ACM_A+B for Input-Output Practice (VIII)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M,
2016-03-27 00:28:46
558
原创 HDU_ACM_A+B for Input-Output Practice (VII)
Problem DescriptionYour task is to Calculate a + b. InputThe input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
2016-03-27 00:27:03
474
1
原创 HDU_ACM_A+B for Input-Output Practice (VI)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains multiple test cases, and one case one line. Each case starts with an integer N, and then N
2016-03-27 00:25:11
356
原创 HDU_ACM_A+B for Input-Output Practice (V)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M,
2016-03-27 00:21:25
435
原创 HDU_ACM_A+B for Input-Output Practice (IV)
InputInput contains multiple test cases. Each test case contains a integer N, and then N integers follow in the
2016-03-27 00:16:12
417
原创 HDU_ACM_A+B for Input-Output Practice (II)
#include "stdio.h"int main(){ int i,a,b; scanf("%d",&i); while(i){ scanf("%d%d",&a,&b); printf("%d\n",a+b); i--; } return 0;}
2016-03-16 18:52:10
251
原创 2016/3/14 开始自己的编程之路
看了许多ACM大神的经历,觉得自己真的是不够努力。从今天开始,我要把自己每天的学习心得写到自己的博客上,借助博客来见证自己一步步的成长。虽然现在已经大三了,参加ICPC什么的也许无望了,但我希望通过ACM提升自己的能力,一步步丰富自己的知识储备,提升自己的编程能力和思维能力。加油!!↖(^ω^)↗如
2016-03-14 21:29:46
271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅