?C程序设计笔记第一课单词:main 主函数 else 否则int 整数型 for 循环float 浮点型 while 当...的时候char 字符型 swichprintf 输出函数 case 案例scanf 输入函数 default 默认 if 如果 ...
分类:
其他好文 时间:
2014-06-27 16:38:12
阅读次数:
263
这里需要使用到case when语句,这个就是sql中的if else语句: select a.ins_id, b.product_id, b.product_name, c.cust_id, c.cust_name, c.cust_sex, c.cust_age, c.family_num, --...
分类:
数据库 时间:
2014-06-27 16:11:21
阅读次数:
297
在erlang的API中,erlang:trunc/1 是就近取整,erlang:round/1是四舍五入的,整理下:对于正数的向上和向下取整,1 %% 向上取整2 ceil(N) ->3 T = trunc(N),4 case N == T of5 true ...
分类:
其他好文 时间:
2014-06-26 22:57:07
阅读次数:
1630
实际中用到的SQL:select * from (select top 3 Id,case when startSignup>GETDATE() then '敬请期待' when (startSignup=getdate()) then '正在报名' when (StartDate=GETDATE(...
分类:
数据库 时间:
2014-06-26 22:24:35
阅读次数:
293
命令缩写:ls:list(列出目录内容)cd:Change Directory(改变目录)su:switch user切换用户rpm:redhat package manager红帽子打包管理器pwd:print work directory打印当前目录 显示出当前工作目录的绝对路径ps: proc...
分类:
系统相关 时间:
2014-06-26 22:15:58
阅读次数:
460
CASE语法格式备忘 1 case $variable-name in 2 pattern1) 3 command1 4 ... 5 .... 6 commandN 7 ;; 8 pattern2|p...
分类:
其他好文 时间:
2014-06-26 19:48:13
阅读次数:
236
Given a string s consists of upper/lower-case alphabets and empty space characters
' ',
return the length of last word in the string.
If the last word does not exist, return 0.
Note...
分类:
其他好文 时间:
2014-06-26 13:55:01
阅读次数:
179
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Analysis: 这个题简单的版本是判断两个单词是不是anagram,一...
分类:
其他好文 时间:
2014-06-26 12:47:48
阅读次数:
144
在Win7关机选项中一共有7种关闭方式,分别为Switch user(切换用户), Log off(登出), Lock(锁定), Restart(重启), Sleep(睡眠), Hibernate(休眠), Shut down(关机).下面分别介绍一下它们的区别:1.Switch user, Log...