Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-11-28 11:50:50
阅读次数:
125
一.shift参数左移until [ $# -eq 0 ]doecho "第一个参数为: $1 参数个数为: $#"shiftdone二.wc该命令用于统计指定文件中的字节数、字数、行数。该命令各选项含义如下:-l 统计行数-w 统计字数-c 统计字节数这些选项可以组合使用。输出列的顺序和数目不受选...
分类:
系统相关 时间:
2015-11-27 17:38:38
阅读次数:
228
if语法 :if [ expression ] then commandselif [ expression2 ] then commandselse commandsficase 语法:case string1 in str1) commands;; str2) commands;; *) ...
分类:
系统相关 时间:
2015-11-26 00:58:14
阅读次数:
209
题目描述:(链接)Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is ...
分类:
其他好文 时间:
2015-11-20 12:19:27
阅读次数:
154
Eclisps有时build后不生成apk。没有对Eclise做过设置调整,android工程代码也是没有问题的。反正就是莫名奇妙的遇到两次,解决方法如下:1、设置:Preferences -> Android -> Build中有一项“Skip packaging and dexing until...
分类:
移动开发 时间:
2015-11-11 23:39:44
阅读次数:
249
在MySQL存储过程的语句中有三个标准的循环方式:WHILE循环,LOOP循环以及REPEAT循环。还有一种非标准的循环方式:GOTO,不过这种循环方式最好别用,很容易引起程序的混乱,在这里就不错具体介绍了。这几个循环语句的格式如下:WHILE……DO……END WHILEREPEAT……UNTIL...
分类:
数据库 时间:
2015-11-11 11:30:25
阅读次数:
235
导入项目到eclipse时,可能会出现the project cannot be built until build path errors are resolved的错误。 作者在写这个项目时,在build path中添加了他的机器里面lib目录下的一些包,这些被工程记录下来了。当你导入这个项目....
分类:
其他好文 时间:
2015-11-10 09:25:06
阅读次数:
346
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, r...
分类:
其他好文 时间:
2015-11-08 19:29:06
阅读次数:
231
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-11-08 14:30:48
阅读次数:
226
用快排完成n(nj) then begin y:=a[i]; a[i]:=a[j]; a[j]:=y; inc(i); j:=j-1; end; until...
分类:
其他好文 时间:
2015-11-02 21:21:57
阅读次数:
114