#include #include using namespace std;class Pet{public: Pet(string theName); void eat(); void sleep(); virtual void play();protected: s...
分类:
编程语言 时间:
2015-03-31 14:37:48
阅读次数:
133
一、数据类型概述: Undefined、Null、Boolean、Number 、String、Object(复杂数据类型)二、Undefined类型: Undefined 类型只有一个值,即特殊的 undefined。 在使用 var 声明变量,但没有对其初始化时,这个...
分类:
Web程序 时间:
2015-03-31 14:30:22
阅读次数:
330
第一种方式,继承Thread类 1 public class Thread extends java.lang.Thread { 2 3 private String name; 4 5 // 定义run方法 6 public void run() { 7 ...
分类:
编程语言 时间:
2015-03-31 14:28:49
阅读次数:
167
一、C#版AES加解密算法 public class AESCode { public string Key { get; set; } public string Encrypt(string val) { if (str...
分类:
编程语言 时间:
2015-03-31 14:23:06
阅读次数:
226
public string GetHtml(string url, Encoding ed) { string Html = string.Empty;//初始化新的webRequst HttpWebRequest Request = (Ht...
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is
a palindrome.
"race a car" is not a
...
分类:
其他好文 时间:
2015-03-31 12:54:59
阅读次数:
114
泛型在实际的工作中应用非常广泛,关于泛型就不在这里赘述了,感兴趣请戳《重新认识泛型》。项目中用到了如下的泛型: public T query(String sql, ResultSetHandler rsh) throws SQLException {
return this.query(sql, rsh, (Object[]) null);
}以上代码在Eclip...
分类:
其他好文 时间:
2015-03-31 12:50:37
阅读次数:
162
泛型在实际的工作中应用非常广泛,关于泛型就不在这里赘述了,感兴趣请戳《重新认识泛型》。项目中用到了如下的泛型: public T query(String sql, ResultSetHandler rsh) throws SQLException { return this....
分类:
其他好文 时间:
2015-03-31 12:39:52
阅读次数:
187
package kpp.search;/** * 二分查找 * 针对有序序列 * @author kpp * */public class BinarySearch { public static void main(String[] args) { // TODO Auto-g...
分类:
编程语言 时间:
2015-03-31 12:34:31
阅读次数:
162
string f = System.AppDomain.CurrentDomain.BaseDirectory.ToString();//获取项目当前目录 //保存地址 string savePath = "...
分类:
其他好文 时间:
2015-03-31 12:23:32
阅读次数:
132