ListView 中有多个选项,长按每个选项,都能弹出一个上下文菜单,并能获取所按选项的详细信息。关键步骤:private static final int DELETE_ID = Menu.FIRST + 1;//使用Menu.FIRST常量而不使用其他常量的原因:程序封装的变量 用起来不占内存 ...
分类:
移动开发 时间:
2014-06-28 17:56:45
阅读次数:
347
以我的经验,大部分技术,熟读下列四类书籍即可。入门,用浅显的语言和方式讲述正确的道理和方法,如head first系列全面,巨细无遗地探讨每个细节,遇到疑难问题时往往可以在这里得到理论解答,如Definitive Guide/Programming xx系列实践,结合实际中经常遇到的情景环境,来描述...
分类:
其他好文 时间:
2014-06-28 13:33:42
阅读次数:
179
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- *//** This program is free software; you can redistribute it and/or modify* it under th...
分类:
其他好文 时间:
2014-06-28 10:59:12
阅读次数:
244
2014-06-20 BaoXinjian一、摘要手工指定SQL语句的执行计划1. hints是oracle提供的一种机制,用来告诉优化器按照我们的告诉它的方式生成执行计划。我们可以用hints来实现:1) 使用的优化器的类型2) 基于代价的优化器的优化目标,是all_rows还是first_row...
分类:
数据库 时间:
2014-06-23 08:37:37
阅读次数:
1050
Jump Game:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents y...
分类:
其他好文 时间:
2014-06-22 23:11:57
阅读次数:
310
Given numRows, generate the first
numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
解题思路:
杨辉三角没什么好说的...
分类:
其他好文 时间:
2014-06-22 22:48:11
阅读次数:
305
// 函数写法初体验
func getMyName(firstName first:String, lastName last:String) -> String{
//return first + "-" + last
return first + last
}
var myName = getMyName(firstName: "hu", lastName: "mingta...
分类:
其他好文 时间:
2014-06-21 22:53:20
阅读次数:
211
??
任何一个STL算法,都需要获得由一对迭代器(泛型指针)所标识的区间,用以表示操作范围。这一对迭代器所标示的是个所谓的前闭后开区间,以[first,last)表示。也就是说,整个实际范围从first开始,知道last-1。迭代器last所指的是“最后一个元素的下一位置”。这种偏移一格的标示法,带来了许多方便,例如下面两个STL算法的循环设计,就显得干净利落:
template
...
分类:
其他好文 时间:
2014-06-21 21:20:27
阅读次数:
293
This note summarizes articles from other places about Microsoft Windows images for OpenStack creation, along with some first hand experience. The whol...
1. First artical, notice the last thing - Connecting the DataSource and Delegate:http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table...
分类:
移动开发 时间:
2014-06-20 16:18:48
阅读次数:
277