码迷,mamicode.com
首页 >  
搜索关键字:the observer is null    ( 35011个结果
java将html导出成word(利用的poi包导出)
//导出到word public void exportWord(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { DBTool tool = null ;...
分类:编程语言   时间:2014-05-13 23:57:53    阅读次数:509
Rhythmk 学习 Hibernate 09 - Hibernate HQL
1、初始数据@Test public void test01() { Session session = null; try { session = HibernateUtil.getSessionFactory().openSession(); session.beginTransac...
分类:系统相关   时间:2014-05-12 19:16:27    阅读次数:469
C语言文件操作(一)
实例1:读写字符文件,每次读取一个字符。#include<stdio.h>#include<stdlib.h>intmain(){FILE*fpin;FILE*fpout;charc;fpout=fopen("c:\\dest.txt","wt");if((fpin=fopen("c:\\test.txt","rt"))!=NULL){c=fgetc(fpin);while(c!=EOF){fputc(c,fpout);c=fgetc(fpin);..
分类:编程语言   时间:2014-05-12 03:57:13    阅读次数:238
C语言文件操作(三)
实例3:读写字节文件,每次读入一个缓存里面。#include<stdio.h>#include<stdlib.h>#defineMAXLEN1024intmain(){FILE*fpin;FILE*fpout;unsignedcharbuf[MAXLEN];intc;fpout=fopen("c:\\dest.jpg","wb");if((fpin=fopen("c:\\test.jpg","rb"))!=NULL){c=fread(buf,s..
分类:编程语言   时间:2014-05-12 03:47:54    阅读次数:244
C语言文件操作(二)
实例2:读取字符文件,每次读入一个缓存里面。#include<stdio.h>#include<stdlib.h>#defineMAXLEN1024intmain(){FILE*fin;FILE*fout=fopen("c:\\dest.txt","wt");charbuf[MAXLEN];if((fin=fopen("c:\\test.txt","rt"))!=NULL){char*c=fgets(buf,MAXLEN,fin);while(..
分类:编程语言   时间:2014-05-12 02:57:48    阅读次数:251
android Listview分批加载+自动加载(附源码下载)
直接上代码,代码有注释: public class TestForListviewActivity extends Activity implements OnScrollListener { private ListView mListview = null; private View mFooterView; private PaginationAdapter mAdapter; ...
分类:移动开发   时间:2014-05-11 21:41:43    阅读次数:394
mongodb文档支持的数据类型
1. 存储类型 mongodb文档类似于json,但不是完全的json。 json只有六种类型:null, bool, 数字,字符串,数组,对象。 但是mongo的文档在json的基础上还扩展了几种类型, 比如,日期类型,整数,浮点数。 mongodb真正存储在磁盘上是使用bson(binary json)。...
分类:数据库   时间:2014-05-11 20:28:51    阅读次数:442
引用和指针的区别
引用和指针有如下三种区别:1 引用必须在声明时初始化,而指针不用;2 对于NULL不能引用,而指针可以指向NULL;3 引用一旦声明,引用的对象不能改变(但对象的值可以改变);而指针可以随时改变指向的对象。引用能做到的,指针也可以,但指针更危险;(1)引用被创建的同时必须被初始化(指针则可以在任何时...
分类:其他好文   时间:2014-05-11 18:17:18    阅读次数:339
getcwd()的实现
通过getcwd()可以获取当前工作目录。1 #include 2 3 char *getcwd(char *cwdbuf, size_t size);成功调用返回指向cwdbuf的指针,失败返回NULL。getcwd()的实现是《Linux/Unix系统编程手册》的练习18.5,题目如下:实现一个...
分类:其他好文   时间:2014-05-11 17:56:54    阅读次数:263
【LeetCode】Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-05-11 16:03:43    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!