判断如下代码最后的执行结果。 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
强制不换行 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
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
#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
#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
循环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
经过两天的努力,总于在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的一些心得,主要侧重函数式编程方面。##1. 以递归为核心控制结构。实现循环处理的方式有三种:goto,for/while,递归,其中用goto实现循环已经在现代语言中被放弃,而for/while形式的结构化编程成...
分类:
其他好文 时间:
2014-06-17 16:01:37
阅读次数:
163
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