(1)代码: 1 import java.util.Random; 2 3 4 public class max { 5 6 public static void main(String[] args) { 7 // TODO Auto-generated...
分类:
编程语言 时间:
2015-04-01 19:25:12
阅读次数:
204
int count = 0; this.page = DTRequest.GetQueryInt("page", 1); //查询字符串拼接 string searchparams = DTRequest.GetQue...
分类:
其他好文 时间:
2015-04-01 19:15:20
阅读次数:
112
我们知道参数类型可以是整型、字符型、对象类型等等,当然也可以是函数。整型用int修饰,字符型用string修饰,等等。那么参数为函数,用什么修饰?就是“委托”。因此,可以把委托理解为函数的类型。using System;using System.Collections.Generic;using S...
分类:
其他好文 时间:
2015-04-01 19:14:27
阅读次数:
96
1. 获取AssetManager
AssetManager am = context.getAssets();
2. 列出assets目录下所有文件
String[] filePathList = am.list("");
3. 打开某个文件
InputStream is = am.open("test.txt");
...
分类:
移动开发 时间:
2015-04-01 17:54:18
阅读次数:
130
Boost解析json格式文本
flyfish 2015-4-1
property_tree可以解析ini,xml,json,info等格式的文本
以下示例是解析json格式的文本
需要包含的头文件
#include
#include
const std::string file_path="C:\\test.txt";
生成数据
void ...
分类:
Web程序 时间:
2015-04-01 17:49:10
阅读次数:
637
题目1 : String reorder
时间限制:10000ms
单点时限:1000ms
内存限制:256MB
Description
For this question, your program is required to process an input string containing only ASCII characters between ‘0...
分类:
其他好文 时间:
2015-04-01 17:40:43
阅读次数:
215
import java.sql.*;
import java.util.*;
public class SQL
{
private Connection conn;
private String connStr, sqlStr;
private String useName, passWord;
private PreparedStatement ...
分类:
数据库 时间:
2015-04-01 17:40:36
阅读次数:
151
上一篇博客讲的是获取联系人信息,这篇是获取通话记录
同样你可以在这里下载http://download.csdn.net/detail/waniu123/8554533
package cn.zxw.contact.domain;
/**
* 通话记录
* @author zhan
*
*/
public class CallLogInfo {
public String nu...
分类:
移动开发 时间:
2015-04-01 17:39:50
阅读次数:
194
logstash中的类型
array
boolean
bytes
codec
hash
number
password
path
string
arrayAn array can be a single string value or multiple values. If you specify the same setting multiple times, it appends to the...
分类:
其他好文 时间:
2015-04-01 17:38:19
阅读次数:
161
problem:
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0...
分类:
其他好文 时间:
2015-04-01 17:37:54
阅读次数:
204