1.BOOL数据类型,是一种表示非真即假的数据类型,布尔类型的变量只有YES和NO两个值。YES表?示表达式结果为真,NO表示表达式结果为假。2.在C语言中,认为非0即为真。3.分?支语句中,经常使用BOOL值做判断,判断执行if语句还是else语句(下面会学习)。4.循环结构中,也经常使用BOOL...
分类:
其他好文 时间:
2015-09-17 19:40:18
阅读次数:
148
判断变量 read -p "input a word :" word if??[ ! -n "$word" ]?;then ????echo "you have not input a word!" else ????echo "the word you input is $word" fi 判断输入参数 #!/bin/bash if [ ! -n ...
分类:
系统相关 时间:
2015-09-17 17:47:34
阅读次数:
227
Happiness is never more than partial. There are no pure state of mankind, whatever else happiness may be, it is neither in having nor in being, but in...
分类:
其他好文 时间:
2015-09-17 17:16:17
阅读次数:
184
/** * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * contenteditable attribute is included anywhere else in...
分类:
Web程序 时间:
2015-09-17 17:09:37
阅读次数:
147
-(instancetype)init{self=[superinit];if(self){//初始化_themeNameNSUserDefaults*defaults=[NSUserDefaultsstandardUserDefaults];NSString*key=[defaultsobjectForKey:KThemeDefaultKey];if(key.length==0){_themeName=@"NewPinkPink";}else{_themeName=key;}//获取文件路..
分类:
其他好文 时间:
2015-09-17 15:34:15
阅读次数:
122
Case when 的用法,简单Case函数 简单CASE表达式,使用表达式确定返回值. 语法: CASE search_expression WHEN expression1 THEN result1 WHEN expression2 THEN result2 ... WHEN exp...
分类:
数据库 时间:
2015-09-17 13:27:18
阅读次数:
227
异常Oracle错误号 SQLCODE值抛出时机ACCESS_INTO_NULLORA-06530-6530程序尝试为一个未初始化(自动赋为null)对象的属性赋值。CASE_NOT_FOUNDORA-06592-6592CASE语句中没有任何WHEN子句满足条件,并且没有编写ELSE子句。...
分类:
数据库 时间:
2015-09-17 13:20:06
阅读次数:
162
Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女'ELSE '其他' END--Case搜索函数CASE WHEN sex = '1' THEN '男'...
分类:
数据库 时间:
2015-09-17 13:10:50
阅读次数:
152
Java 关键字列表 (依字母排序 共51组):abstract, assert,boolean, break, byte, case, catch, char, class, const, continue, default, do, double, else, enum,extends, fin...
分类:
编程语言 时间:
2015-09-17 11:47:41
阅读次数:
212
题目中给出的函数具有周期性,总可以移动到第一个周期内,当然,ausing namespace std;int main(){ int a,b; scanf("%d%d",&a,&b); if(a<b) puts("-1"); else { int t1 = a+b, ...
分类:
其他好文 时间:
2015-09-17 10:02:49
阅读次数:
146