码迷,mamicode.com
首页 >  
搜索关键字:while break continue    ( 40024个结果
scjp考试准备 - 1
判断如下代码最后的执行结果。 public class Breaker{ static String o = ""; public static void main(String[] args){ z: o = o+2; for(int x=3; x<8; x++){ if(x==4) break;...
分类:其他好文   时间:2014-06-20 22:55:00    阅读次数:251
css实现强制不换行/自动换行/强制换行
强制不换行 div{ white-space:nowrap; } 自动换行 div{ word-wrap: break-word; word-break: normal; } 强制英文单词断行 div{ word-break:break-all; } ========================...
分类:Web程序   时间:2014-06-18 10:47:41    阅读次数:274
Tips for C
1. sizeof(literal-string) is number of bytes plus 1 (NULL is included), while strlen(literal-string) is number of bytes.2. Printf and scanf formatBefo...
分类:其他好文   时间:2014-06-18 10:14:22    阅读次数:226
(Power Strings)sdutoj2475
#include #include #include char a[1000001];int next[1000001];int l;void Getnext(){ int j=-1; int i=0; next[0]=-1;//忘写了,死循环 while(i...
分类:其他好文   时间:2014-06-18 09:35:19    阅读次数:138
KMP(http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2772)
#include #include #include char a[1000001],b[1000001];int next[1000001];int l,l2;void Getnext(){ int i=0; int j=-1; next[0]=-1; while(i=l2...
分类:Web程序   时间:2014-06-18 09:29:37    阅读次数:221
Eclipse - 循环cin的输出如何终止
循环cin的输出如何终止本文地址: http://blog.csdn.net/caroline_wendyEclipse中, 使用CDT编写C++代码时, 循环(while)cin输入程序, 需要终止, 如: while (cin>>i) S.insert(i);Eclipse的终止方法是:首先在输入数据框内, 使用回车(Enter) -> 再终止(terminate)程序, 即输出结果....
分类:系统相关   时间:2014-06-18 07:51:45    阅读次数:725
Ubuntu12.04下jamvm1.5.4+classpath-0.98成功运行 helloworld.class
经过两天的努力,总于在ubuntu下面编译好classpath-0.98与jamvm1.5.4,并能成功的执行类文件:jamvm hellowold,当屏幕上打印出“hello world!”的时候,按捺不住一阵兴奋!在这两天中,执行jamvm hellowold始终被有三类异常:   1) Exceptionoccurred while VM initialising java/lang/...
分类:其他好文   时间:2014-06-17 22:13:53    阅读次数:394
高斯消元模版
矩阵的秩 typedef int Matrix[maxn][maxn]; int rank(Matrix A, int m, int n) { int i = 0, j = 0, k, r, u; while(i < m && j < n) { r = i; for(k = i; k < m; k++) if(A[k][j]) { r = k; brea...
分类:其他好文   时间:2014-06-17 19:03:00    阅读次数:210
原创:Scala学习笔记(不断更新)
Scala是一种函数式语言和面向对象语言结合的新语言,本笔记中就零散记下学习scala的一些心得,主要侧重函数式编程方面。##1. 以递归为核心控制结构。实现循环处理的方式有三种:goto,for/while,递归,其中用goto实现循环已经在现代语言中被放弃,而for/while形式的结构化编程成...
分类:其他好文   时间:2014-06-17 16:01:37    阅读次数:163
RMAN之参数BACKUP_TAPE_IO_SLAVES
ocp 053:656.The BACKUP_TAPE_IO_SLAVES parameter is set to FALSE for the database instance. Whichstatement is true while performing a tape backup in an...
分类:其他好文   时间:2014-06-17 15:27:56    阅读次数:481
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!