本次测试主要测试数值的取值范围。代码如下:#include#include#includeint main(){ srand(time(NULL)); int sz; //sz 即数值取值范围 char fh; //fh即四则...
分类:
其他好文 时间:
2015-03-16 16:15:09
阅读次数:
110
1.查询public static void read() throws SQLException { Connection conn = null; Statement stmt = null; ResultSet rs = null; ...
分类:
数据库 时间:
2015-03-16 14:14:03
阅读次数:
165
配置applicationContext.xml,给自定义拦截器增加了properity属性是一个biz,运行的时候一直报空指针异常,输出结果biz总是null,很是好奇,难不成拦截器无法被注入么? - -后来试了一下biz直接实例化,结果还是。...
分类:
其他好文 时间:
2015-03-16 11:20:15
阅读次数:
131
1,文件夹是否存在: 通过判断文件夹是否成功打开 来判断 DIR?*dir; ????if?((dir?=?opendir(path))?==?NULL) ????{ ????????return?0; ????} ? ????closedir(dir); 2,文件是否存...
分类:
编程语言 时间:
2015-03-16 11:18:39
阅读次数:
272
1 window.onload = function () {2 if (getCookie('name')!=null&&getCookie('phone')!=null&&getCookie('password')!=null) {3 ...
分类:
其他好文 时间:
2015-03-16 11:00:18
阅读次数:
134
1.打开数据库
函数
int sqlite3_open(
const char *filename, // 数据库的文件路径
sqlite3 **ppDb // 数据库实例
);
示例
// path是数据库文件的存放路径
sqlite3 *db = NULL;
int result...
分类:
数据库 时间:
2015-03-16 09:52:26
阅读次数:
162
一、题目 合并两个有序的链表并使新链表也是有序排列。二、算法实现 1 ListNode* Merge(ListNode* pHead1, ListNode* pHead2) 2 { 3 if (pHead1 == NULL) 4 return pHead2; 5 e...
分类:
其他好文 时间:
2015-03-16 06:07:45
阅读次数:
134
上午将开题报告写完了。下午的时候做了90道关于javaSE部分的题。晚上把Jdbc连接部分又回顾了一下。现在回顾一下IO的几个包装类吧。
ObjectInputStream/ObjectOutputStreamObjectOutputStream oos = null;
try{
oos = new ObjectOutputStream(new FileOutputStream(new F...
分类:
其他好文 时间:
2015-03-16 01:02:30
阅读次数:
236
题目链接:Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
这道题的要求是向右旋转链表...
分类:
其他好文 时间:
2015-03-15 23:43:32
阅读次数:
353
(1)查询某个字段不为空的数据select * from tb_Grade where GradeName is not null 或 select * from tb_Grade where LEN(GradeName)>0或select * from tb_Grade where ISNULL(...
分类:
数据库 时间:
2015-03-15 23:29:23
阅读次数:
171