一、简介: Android有一个内置数据库SQLite,它是一种轻型数据库,它有五种数据类型:NULL(空型)、BLOB(二进制)、INTEGER(整型)、REAL(浮点型)、TEXT(字符串文本),虽然有着五种数据之分,但是在内部SQLite存储数据是无类型的,也就是说你可以在integer...
分类:
移动开发 时间:
2015-03-31 19:32:15
阅读次数:
237
verilog 支持定义数组参数,这样工程很大时,例化模块时可以使代码更简洁:详见实例module dma_controller #( parameter integer C0_MAX_MIG_BL[3:0] = {2048,2048,2048,2048}, ...
分类:
编程语言 时间:
2015-03-31 17:58:34
阅读次数:
263
1、object关键字相当于C++中的struct, record定义个结构体只能定义数据,而object可以定义方法,默认都是public的。 代码示例如下: TTest = record name: string; age: Integer; end; TTest2 = object name:...
--创建表结构/*CREATE TABLE TBL_USER( USER_ID INTEGER PRIMARY KEY, UNAME VARCHAR2(20) NOT NULL, UPWD VARCHAR2(20) NOT NULL, LAST_MODIFIED DATE);*/--1、创建...
分类:
数据库 时间:
2015-03-31 10:43:30
阅读次数:
433
import java.io.*;
public class Main{
public static void main(String[]args)throws Exception{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseI...
分类:
其他好文 时间:
2015-03-31 09:16:58
阅读次数:
124
Android ListView最佳处理方式,ListView拖动防重复数据显示,单击响应子控件。1、为了防止拖动ListView时,在列表末尾重复数据显示。需要加入 HashMap lmap = new HashMap();其中Integer为列表位置,View为子项视图,加入数据前首先if (l...
分类:
其他好文 时间:
2015-03-30 22:26:43
阅读次数:
313
corner case的处理 整数一般考虑两点:一点是符号,另外一点是越界 首先去掉多余的空格字符 然后读符号,可能是正号,也可能是负号,也可能没有符号 然后按顺序读数字 结束条件有三: 1、异常字符出现——舍弃异常字符后的数据,保留前面的数作为结果; 2、数字越界——返回最接近的整数; 3、正常结...
分类:
其他好文 时间:
2015-03-30 20:49:09
阅读次数:
120
Problem DescriptionCalculate A * B.InputEach line will contain two integers A and B. Process to end of file.Note: the length of each integer will not ...
分类:
其他好文 时间:
2015-03-30 20:25:33
阅读次数:
151
题目描述:
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming
weight).
For example, the 32-bit integer ’11' has binary representa...
分类:
其他好文 时间:
2015-03-30 18:42:17
阅读次数:
128
Description
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal lengt...
分类:
其他好文 时间:
2015-03-30 16:36:02
阅读次数:
117