本文目录流程控制选择结构-if选择结构-switch循环结构-while循环结构-do while循环结构-forbreak 和 continue回到顶部一、流程控制1> 顺序结构:默认的流程结构。按照书写顺序执行每一条语句。2> 选择结构:对给定的条件进行判断,再根据判断结果来决定执行哪一段代码。...
分类:
其他好文 时间:
2014-07-03 22:21:27
阅读次数:
348
安装脚本1、1_preusers.sh#!/bin/bash#Purpose:Create 3 groups named 'oinstall','dba','oper', plus 1 users named 'oracle'.#Also setting the Environment#variab...
分类:
数据库 时间:
2014-07-03 10:50:44
阅读次数:
268
DP is, enumeration + pruning. If you can think of enumeration pattern of a problem, plus a recurrence relation later, you are there.Main ref:http://bl...
分类:
其他好文 时间:
2014-07-03 09:32:27
阅读次数:
213
choose, when, otherwise有时我们不想应用所有的条件, 相反我们想选择很多情况下的一种。 Java 中的 switch 和 语句相似,MyBatis 提供 choose 元素。我们使用上面的示例,但是现在我们来搜索当 title 提供时仅有 title 条件,当 author 提...
分类:
数据库 时间:
2014-07-03 09:23:49
阅读次数:
223
在本机上非oracle用户运行sqlplus时,报以下错误:[cpdds@node1 ~]$ sqlplus cpdds_pdata/cpdds_pdataSQL*Plus: Release 10.2.0.4.0 - Production on 星期五 4月 27 13:43:16 2012Copy...
分类:
数据库 时间:
2014-07-03 00:42:38
阅读次数:
271
在开发当中我们经常会使用三个设计模式,来帮我们解决项目代码的可扩展性。在简单工厂,工厂方法,抽象工厂这三个设计模式当中,代码其实都很简单,主要是要理解运用。简单工厂:简单工厂说白了,就是利用Switch根据传递的参数,进行实例化。利用抽象类,进行反转。从而得到自己想要的实例化对象。工厂方法:工厂方法...
分类:
其他好文 时间:
2014-07-02 18:25:12
阅读次数:
206
搭建Android NDK环境 Windows XP环境下1 一些下载① NDK r7:http://developer.android.com/sdk/ndk/index.html ② cygwin:http://www.cygwin.com/ (1.7.11-1)③ notepad++:http://notepad-plus-plus.org/download/v5.9.8.html2 cy...
分类:
移动开发 时间:
2014-07-01 07:58:41
阅读次数:
322
基带数字处理功能以及手机基本外围功能都集中到单片片上系统(SOC)中,其基本构架都采用了微处理器+数字信号处理器(DSP)的结构,微处理器和DSP的处理能力一直增强。微处理器是整颗芯片的控制中心,会运行一个实时嵌入式操作系统(如Nucleus PLUS)。DSP子系统是基带处理的重点,其中包含了许多硬件加速器和基带专用处理模块,完成所有物理层功能。本文概述了单模和多模基带芯片的架构。...
分类:
移动开发 时间:
2014-07-01 07:34:01
阅读次数:
342
1、Swift,用来判断option是不是nil,相当于OC的 if(option)
if let name = option{
greeting = “if=====“
}else{
greeting = "else==="
}
2、运行switch中匹配到的子句之后,程序会退出switch语句,并不会继续向下运行,所以不需要在每个子句结尾写break。
3、//使用..创建的范围...
分类:
其他好文 时间:
2014-07-01 07:05:30
阅读次数:
234
import Foundation
println("Hello, World!")
var string1 = "Hello BeiJing" //定义一个变量(字符串)
//var string1: String = "Hello, BeiJing" //系统会自动进行类型推断为此表达式
println("string1 = \(string1)")
let string2 = "Hel...
分类:
其他好文 时间:
2014-07-01 06:14:53
阅读次数:
191