码迷,mamicode.com
首页 >  
搜索关键字:python异常处理 try except assert    ( 20850个结果
SQL Server中except和intersect用法
except是A集合减去B集合的结果;intersect是A集合和B集合的交集;都是返回的是非重复值,很多属性都和union类似。还是以student为例select * from student;select * into student1 from student;goinsert into s...
分类:数据库   时间:2014-06-29 13:15:13    阅读次数:342
第10章-异常处理 --- 使用throw抛出异常
第10章-异常处理 --- 使用throw抛出异常(一)抛出异常 如果需要在程序中自行抛出异常,则应使用throw语句,throw语句可以单独使用,throw语句抛出的不是异常类,而是一个异常实例,而且每次只能抛出一个异常实例. throw语句的语法格式如下: throw Except...
分类:其他好文   时间:2014-06-06 23:41:41    阅读次数:410
ATL错误处理
_com_issue_error(HRESULT x)throw a _com_error object 1 try 2 { 3 HRESULT hr; 4 ... 5 if (FAILED(hr)) 6 _com_issue_error(hr); ...
分类:其他好文   时间:2014-06-06 11:44:29    阅读次数:199
Hibernate中的Configuration类
Configuration类用来管理我们的配置文件的信息的,通过它,我们可以通过创建一个configuration实例来管理相应的配置文档,但是通常我们只创建一个configuration实例。 下面是一个通用的创建实例的代码Java代码 try{ sessionFactory = new Con....
分类:系统相关   时间:2014-06-06 09:19:09    阅读次数:291
归并排序算法
import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms { /** * 归并排序算法 * * @param a * @return */ st...
分类:其他好文   时间:2014-06-06 07:26:53    阅读次数:273
插入排序算法
import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms { /** * 插入排序算法 * * @param n...
分类:其他好文   时间:2014-06-06 07:07:40    阅读次数:205
第二章 算法基础 思考题2-1
package chap02;import static org.junit.Assert.*;import java.util.Arrays;import java.util.Random;import org.junit.Test;/*** * 在归并排序中对小数组采用插入排序 * * @aut...
分类:其他好文   时间:2014-06-05 16:51:05    阅读次数:197
排序算法之冒泡法
package chap02_Basic_Algorithms;import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms { /** * 冒泡法...
分类:其他好文   时间:2014-06-05 15:44:15    阅读次数:241
Ado.net的初步链接
string connStr = "Data Source=.;Initial Catalog=MySchoolMoreData;Integrated Security=True"; try { usi...
分类:Web程序   时间:2014-06-05 15:26:20    阅读次数:260
java异常处理
public void test() throws IOException{ try( BufferedReader br=new BufferedReader(new FileReader("AutoCloseTest.java")); PrintStream ps=new PrintStream...
分类:编程语言   时间:2014-06-05 14:12:26    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!