码迷,mamicode.com
首页 >  
搜索关键字:if then else    ( 23991个结果
oracle 创建表空间
1,打开 sqlplus 登录用户 > system as sysdba >**** 2,创建临时表空间 create temporary tablespace VTMTEMP tempfile 'D:\else\oracle\tablespace\vtm\vtmtemp.dbf' size 50m...
分类:数据库   时间:2014-10-30 23:53:12    阅读次数:306
poj 3273
#include #include #define range(i,a,b) for (int i=a;ival) return 0; else if (sum+Cost[i]>n>>m; L = R = 0; range(i,1,n) ...
分类:其他好文   时间:2014-10-30 20:55:11    阅读次数:271
四.运算符(4)逻辑运算符
逻辑运算符 学习目标:理解逻辑运算符和使用(&& ||)。' ;$house=true;$car=true;if($house===true&&$car===true){ //分析: 用‘&&’逻辑符判断 ‘并且’ 要满足二个条件才为真。 echo 'I love you','';} else...
分类:其他好文   时间:2014-10-30 19:05:04    阅读次数:171
四.运算符(3)三元运算
三元运算 学习目标:理解三元运算表达式(condtion?expr1:expr2)=$b){ echo $c=$a;} else{ echo $c=$b; //打印出20。代码分析:这表达式,if()中判断为真走第一步,为假则走eles}var_dump($c);$c=($a>=$b...
分类:其他好文   时间:2014-10-30 16:54:52    阅读次数:132
Book learn python the hard way EXERCISE 36 Designing and Debugging
EXERCISE 36Designing and DebuggingRules for If- Statements1. Every if- statement must have an else.2. If this else should never be run because it does...
分类:编程语言   时间:2014-10-30 16:47:05    阅读次数:166
if语句,case语句
1、句式:if...then.判断赋值例:if RadioButton1.Checked then sex:='男' else if RadioButton2.Checked then sex:='女'2、case...of...end;例: case Radio...
分类:其他好文   时间:2014-10-30 01:33:10    阅读次数:135
php中接收参数,不论是来自GET还是POST方法
不多说,直接上代码,其实也就是先用GET的方法去获取,如果值为空,在用POST方法去获取写下来是为了方便和备忘function getParam($str){ if ( isset($_GET[$str]) ) $t_Val = trim($_GET[$str]); else i...
分类:Web程序   时间:2014-10-29 19:11:10    阅读次数:185
C#委托
转自:http://www.cnblogs.com/ArmyShen/archive/2012/08/31/2664727.html委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递,这种将方法动态地赋给参数的做法,可以避免在程序中大量使用if-else(switch)语...
分类:Windows程序   时间:2014-10-29 19:04:30    阅读次数:235
这样就算会了PHP么?-9
PHP关于COOKIE的应用"; } else { setcookie("visittime", date("y-m-d H:i:s"), time() + 60); echo "you visit our site's last time is : " .$_CO...
分类:Web程序   时间:2014-10-29 16:39:25    阅读次数:175
Thinking in scala (4)----阶乘与尾递归
code1:object factorial{ def main(args:Array[String])={ println(factorial(args(0).toInt)) } def factorial(x:Int):Int = if (x==0) 1 else x * fa...
分类:其他好文   时间:2014-10-29 12:52:22    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!