$ cat openstack_install.sh #!/usr/bin/env bashfunction usage { echo "Usage:$0 [OPTAION]..." echo "master install openstack master in this syste...
分类:
系统相关 时间:
2014-11-21 01:27:38
阅读次数:
283
#include<stdio.h>
#include<ctype.h>
intmain(intargc,char**argv)
{
charch;
printf("Enterthewantyouwant:\n");
while((ch=getchar())!=‘#‘)
{
if(ch==‘\n‘)
continue;//改成break的话,直接回车就会跳出循环。
if(islower(ch))
switch(ch)
{
case‘a‘:puts("..
分类:
其他好文 时间:
2014-11-20 23:54:38
阅读次数:
189
SELECT SM_ID,SM_CID,SM_STATION,SM_TIME,PS_CODE,PS_NUMBER,SS_NAME,SS_CODE,(CASE WHEN SM_TYPE=1 THEN '终点站' WHEN SM_TYPE=2 THEN '中转站' END)FROM dbo.PDA_.....
分类:
其他好文 时间:
2014-11-19 22:08:18
阅读次数:
114
1. CASE WHEN 表达式有两种形式--简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASEWHEN sex = '1' THEN '男' WHEN sex = '2...
分类:
数据库 时间:
2014-11-19 18:19:15
阅读次数:
247
参考自http://stackoverflow.com/questions/19478244/how-does-a-case-anonymous-function-really-work-in-scalahttp://www.scala-lang.org/files/archive/nightly/...
分类:
其他好文 时间:
2014-11-19 15:32:55
阅读次数:
244
auto 局部变量(自动储存)break无条件退出程序最内层循环case switch语句中选择项char单字节整型数据const定义不可更改的常量值continue中断本次循环,并转向下一次循环default switch语句中的默认选择项do 用于构成do.....while循环语句dou...
分类:
编程语言 时间:
2014-11-19 12:26:29
阅读次数:
183
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
原题链接:https://oj.leetcode.com/problems/anagrams/
易位构词游戏的英文词汇是 anagram,这个词来源于有...
分类:
其他好文 时间:
2014-11-19 11:24:01
阅读次数:
170
Irrelevant Elements
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 2231
Accepted: 550
Case Time Limit: 2000MS
Description
Young cryptoanalyst Georgie...
分类:
其他好文 时间:
2014-11-19 11:03:00
阅读次数:
203
Updating a DictionaryIn this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, and values are non-negative in...
分类:
其他好文 时间:
2014-11-19 07:04:07
阅读次数:
223
#!/bin/bash#Authorxieping1991@163.comn=10m=0p=0whiletruedoecho"""产品列表为:小米苹果三星警告:本地址产品仅限购买5件!!!"""foriin`seq100`doletn++if[$n-eq16];thenecho"本地址产品限购5件,购买过多,即将5秒内退出"forwin`seq-w5-11`doecho"退出还有$w秒!!!"slee..
分类:
其他好文 时间:
2014-11-19 02:17:58
阅读次数:
225