learn and do
haoshuang3394 · 共 146 篇文章
基于异常的设计(1)
异常exception 是指在运行时刻程序出现的反情形,例如数组下标越界、打开文件失败以及可用动态内存耗尽等等。程序员一般有自己的处理异常的风格,这导致了不同的编码习惯,因而很难整合到一个单一的应用程序中。异常处理exception handling 为响应运行时刻的程序异常提供了一个标准的语言级的设施。它支持统一的语法和风格,也允许每个程序员进行微调。异常处理使得我们不需要在程序中处处显式地测试异常状态,从而可以将测试异常状态的代码抽取出来放入指定的显式标记的代码块中,因此异常处理设施大大地减少了程序代码的长度和复杂度。异常处理机制的主要构成如下 1 程序中异常出现的点。一旦识别出程序异常…
2009-06-10 00:39 · C++学习 · 评论(0) · C · C++ · C#
examResult.py源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-10 00:21 · python学习 · 评论(0) · C · C++ · C#
main.php源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-10 00:21 · php学习 · 评论(0) · CSS · PHP · SQL · MySQL
Drawing Simple Text:画简单的文本
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-09 01:20 · java学习 · 评论(0) · C · C++ · C#
泛型设计(3)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-09 01:14 · C++学习 · 评论(0) · C · C++ · J# · C#
classAverage.py源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-09 01:06 · php学习 · 评论(0) · C · C++ · C#
left.php源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-09 01:06 · python学习 · 评论(0) · CSS · 招聘 · PHP · MySQL · JavaScript
泛型设计(2)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-08 01:04 · C++学习 · 评论(0) · C · C++ · C#
square.py源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-08 00:05 · python学习 · 评论(0) · C · C++ · C#
invitejob_info.php源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-07 23:49 · php学习 · 评论(0) · CSS · 招聘 · PHP · SQL · MySQL
Drawing an Image:画一幅图
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-07 00:56 · java学习 · 评论(0) · C · C++ · C#
泛型设计(1)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-07 00:28 · C++学习 · 评论(0) · C · C++ · C#
average.py源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-07 00:20 · python学习 · 评论(0) · C · C++ · C# · performance
house_info.php源代码分析
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-06 23:01 · php学习 · 评论(0) · C · C++ · PHP · C#
Loading an Image:加载一幅图像
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-06-05 23:56 · java学习 · 评论(0) · C · C++ · C#