#!/bin/bash#提示用户输入echo -n "Please enter number"read n #读入输入的值放到变量n中sd=0rev=""on=$n #将变量n的值保存到变量on中,方便以后用到echo "You put number is $n"while [$n -gt 0]do...
分类:
其他好文 时间:
2014-07-16 23:03:53
阅读次数:
261
问题如下:BUILD FAILEDD:\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:653: The following error occurred while executing this line:D:\adt-bund...
分类:
其他好文 时间:
2014-07-16 23:03:08
阅读次数:
195
题目//找规律,123321123321123321…发现这样排列恰好可以错开// 其中注意题中数据范围: M是行,N是列,3 #include#include#includeusing namespace std;int main(){ int n, m; while( scanf( ...
分类:
其他好文 时间:
2014-07-16 22:55:54
阅读次数:
143
0:000> bp 0012f2fc "j @ecx == 0 '';'gc'"0:000> g j代表judgement,与c++中的condition?A:B类似。如果断点处ecx是0,则停下;否则go until next breakpoint(gc).
分类:
数据库 时间:
2014-07-16 22:51:13
阅读次数:
218
#include#includevoid getNext(int *Next,char* src){ int i,j; Next[0]=-1; i=0; j=-1; int N=strlen(src); while(i<N-1){ if(j==-1||src[i]==src[j]){ ++i;...
分类:
其他好文 时间:
2014-07-16 21:33:22
阅读次数:
222
水题#include #include using namespace std;int main(){ int n; int c,sum1; double sum2; char str[10]; while(scanf("%d",&n)!=EOF) { ...
分类:
其他好文 时间:
2014-07-16 21:20:09
阅读次数:
173
/*while循环语句,为了简化代码,让代码执行很多次 定义初始化表达式 while(条件表达式) { 循环体(执行语句) } System.out.println(x++);//该句既可以打印出x的值又可以...
分类:
其他好文 时间:
2014-07-16 21:00:58
阅读次数:
246
需求:获取1到10的和 1+2=3 3+3=6 6+4=10 ........使用累加思想 (这种算法叫高斯算法)定义变量,利用循环按照某种规律不断的操作public class WhileTest1 { public static void main...
分类:
其他好文 时间:
2014-07-16 20:55:46
阅读次数:
193
```cpp#includeint a[100],ans ;int main(){ int n , t = 0 ; while (scanf("%d",&n)!=EOF) { for (int i=1; i0) ; ++t ; printf("C...
分类:
其他好文 时间:
2014-07-16 20:46:13
阅读次数:
137
引用Jquery$(".figcaption").each(function(i){ var divH = $(this).height(); var $p = $("p", $(this)).eq(0); while ($p.outerHeight() > divH) { $p.text($p.t...
分类:
其他好文 时间:
2014-07-12 08:42:15
阅读次数:
203