
转载代码
yanxiazhiqiu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
二叉树的java实现
// BinaryNode class; stores a node in a tree.//// CONSTRUCTION: with (a) no parameters, or (b) an Object,// or (c) an Object, left child, and right child.//// *******************PUBLIC OPERATIONS*****转载 2005-10-19 10:18:00 · 1026 阅读 · 0 评论 -
用六大代码问题检验你的Java知识能力
你觉得自己是一个Java专家吗?是否肯定自己已经全面掌握了Java的异常处理机制?在下面这段代码中,你能够迅速找出异常处理的六个问题吗? 1 OutputStreamWriter out = ... 2 java.sql.Connection conn = ... 3 try { // ⑸ 4 Statement stat = conn.createStatement(); 5转载 2005-10-26 13:54:00 · 659 阅读 · 0 评论 -
I/O流的典型使用方式
import java.io.*;public class IOStreamDemo{ public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new FileReader("IOStreamDemo.java")); Strin转载 2005-10-20 11:14:00 · 966 阅读 · 1 评论 -
一种N*N矩阵的打印方法
void main(){ int N; int buf[20][20]; printf("n(1~20)="); scanf("%d",&N); if(N20) { printf("N is not a valid number!/n"); return; } int i,j,index=1; int min=0,max=N-1; int tag=0; i=min; j=min; whi转载 2005-11-01 10:52:00 · 1017 阅读 · 0 评论 -
c语言中的串模式匹配,用java实现了一下
public class TestMatch{ public static boolean stringPatternMatch(String s,String t,int pos){ char[] s1=s.toCharArray(); char[] t1=t.toCharArray(); int i=pos ,j=0; while(转载 2005-11-01 10:50:00 · 864 阅读 · 0 评论 -
排列组合公式
排列组合计算公式0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"/>转载 2005-11-02 17:02:00 · 1778 阅读 · 0 评论