package com.itheima.c_c3p0;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
import com.mchange.v2.c3p0.ComboPooledDataSource;
public class C3P0Utils {
//提供连...
分类:
数据库 时间:
2014-06-11 07:09:51
阅读次数:
254
这里给出大部分主要的代码
联系人模型对象:
#import "NJContatc.h"
@implementation NJContatc
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:self.name forKey:@"name"];
[aCoder encodeObject:s...
分类:
其他好文 时间:
2014-06-10 16:00:44
阅读次数:
245
import java.awt.*;public class FrameDemo { public
static void main(String[] args) { // TODO Auto-generated method stub Frame
f=new...
分类:
其他好文 时间:
2014-06-10 09:27:25
阅读次数:
235
一:元组格式 变量或常量关键字 元组变量 = ( 变量,变量, …)说明: 1:
元组变量还是一个变量,只不过表现方式和其他变量不一样2:()括号里面可以放入N个变量组成例子;import Foundation/*A是元组变量,()里面放着
整形 和字符串元组类型为 整形和字符串 组成*/va...
分类:
其他好文 时间:
2014-06-10 09:11:20
阅读次数:
213
iOS中单例模式的实现一般分为两种:MRC和ARC+GCD 1.MRC(非ARC)
非ARC的单例的实现方式: #import @interface
NoARCSingleton:NSObject//这个属性在后面调试有用处,而且也不要苦恼为什么是retain?不应该是copy么?请继续看...
分类:
移动开发 时间:
2014-06-10 08:25:25
阅读次数:
390
package 线程安全测试;import java.util.ArrayList;import
java.util.List;import java.util.concurrent.ExecutorService;import
java.util.concurrent.Executors; cla...
分类:
编程语言 时间:
2014-06-10 00:41:04
阅读次数:
432
Person.java 1 package
cn.itcast.hiberate.sh.domain.onetoone; 2 3 import java.io.Serializable; 4 import
java.util.Set; 5 6 public class Person implem.....
分类:
系统相关 时间:
2014-06-09 19:26:44
阅读次数:
341
1. python -m cProfile myprogram.py2. 使用import
profile模块import profiledef profileTest(): ...if __name__ == "__main__":
profile.run("profileTest()")3......
分类:
编程语言 时间:
2014-06-09 18:59:10
阅读次数:
219
很值得学习的java
画图板源码下载地址:http://download.csdn.net/source/2371150package minidrawpad;import
java.awt.*;import java.awt.event.*;import java.io.InputStreamRe...
分类:
编程语言 时间:
2014-06-09 18:33:50
阅读次数:
446