iOS中plist的创建,数据写入与读取 09/02/2011 功能创建一个test.plist文件,textInput作为输入,displayLabel作为显示,有一个按钮来触发保持程序triggerStorage; -(void)triggerStorage{ displayLabel.text ...
分类:
移动开发 时间:
2016-04-15 15:28:42
阅读次数:
189
//文件初始化 void init(){ FILE * fp=NULL; fp=fopen("telbook.data", "rb"); int count=0; if (fp==NULL) //没有这个文件就把这个文件创建出来 { fp=fopen("tellbook.data", "wb"); ...
分类:
移动开发 时间:
2016-04-15 15:22:25
阅读次数:
188
//访问报表public void OPENREPORT() throws RemoteException, MXException{ int polineid=this.getMbo().getInt("polineid"); String baseUrl=clientSession.getMax ...
分类:
Web程序 时间:
2016-04-15 15:16:42
阅读次数:
146
先来看一下三个函数的声明:void * malloc(usigned size);
void * realloc(void *ptr, unsigned newsize);
void * calloc(size_t numElements, size_t sizeofElement);它们都包含在#include 头文件中,他们的返回值都是请求分配的地址,如果请求失败就返回NUL...
分类:
其他好文 时间:
2016-04-15 14:08:07
阅读次数:
162
1.pcap_dump()和pcap_live_dump() void pcap_dump (u_char *user, const struct pcap_pkthdr *h, const u_char *sp)将数据包保存到磁盘 int pcap_live_dump (pcap_t *p, ch ...
c++11中增加了线程,使得我们可以非常方便的创建线程,它的基本用法是这样的: void f(int n); std::thread t(f, n + 1); t.join(); 但是线程毕竟是属于比较低层次的东西,有时候使用有些不便,比如我希望获取线程函数的返回结果的时候,我就不能直接通过 thr ...
分类:
编程语言 时间:
2016-04-15 13:41:48
阅读次数:
289
1.根据2点创建一条线 /// <summary> /// 创建线 /// </summary> /// <param name="pnt1">The PNT1.</param> /// <param name="pnt2">The PNT2.</param> public static void ...
分类:
其他好文 时间:
2016-04-15 10:32:36
阅读次数:
145
#include<pthread.h>
#include<iostream>
usingnamespacestd;
intglobal=0;
void*assign_value(void*param){
global=3;
}
intmain(){
pthread_tthread;
pthread_create(thread,NULL,assign_value,(void*)nullptr);
pthread_join(thread,NULL);
cout<<glob..
分类:
其他好文 时间:
2016-04-15 07:09:03
阅读次数:
200
建议: 大批量数据的处理不要使用hibernate,优先考虑JDBC的批量处理.(一般使用JDBC) 如果对性能要求极高,可以考虑PL/SQL JDBC批量处理的例子: public void addDeptList(List<Dept> paramList) throws Exception{ C ...
分类:
其他好文 时间:
2016-04-15 07:06:33
阅读次数:
125
day24
1.多线程(JDK5之后的Lock锁的概述和使用)
Lock:
void lock(): 获取锁。
void unlock():释放锁。
ReentrantLock是Lock的实现类.
Re---entrant---Lock
SellTicket类
import java.ut...
分类:
编程语言 时间:
2016-04-15 02:17:02
阅读次数:
307