
奇人軼事鑑賞(?)
================================
steven70101 發表在 痞客邦 留言(1) 人氣(160)
好一個NDSi宣傳(聽說裡面扣除電子儀器是用樂高組的)
第三題已經傳出去了,就省了(茶)
================================
steven70101 發表在 痞客邦 留言(0) 人氣(158)

雖然說是二元樹,其實也只是用 txt 檔寫出資料所在位置跟資料代碼罷了囧,圖形還不會用
像這樣:
1,a
2,b
3,c
5,d
6,e
10,f
11,g
steven70101 發表在 痞客邦 留言(1) 人氣(794)

圖中你看過幾個XD?
================================
import java.io.*;class node{
char data;
node left;
node right;
node(char d,node l,node r){
data = d;
left = l;
right = r;
}
}
steven70101 發表在 痞客邦 留言(0) 人氣(979)

囧!
================================
import java.io.*;
import java.util.*;class node{
int key;
node left;
node right;
node(int k){
key = k;
left = null;
right = null;
}
}
steven70101 發表在 痞客邦 留言(0) 人氣(918)

有誰要投稿的!(這梗不是內行的應該不會懂(?))
================================
import java.io.*;
import java.util.*;class BinaryTree{
char[] data;
BinaryTree(File f,int d)throws FileNotFoundException{
int z = (int)Math.pow(2.0,(double)d);
data = new char[z];
Scanner r = new Scanner(f);
while(r.hasNextLine()){
String s = r.nextLine();
StringTokenizer stk = new StringTokenizer(s,",");
int id = Integer.parseInt(stk.nextToken());
char c = stk.nextToken().charAt(0);
data[id] = c;
}
r.close();
}
steven70101 發表在 痞客邦 留言(0) 人氣(115)

最近題目越做越隨性了(汗)
----------------------------------------------------------------------------------------------
public class ex6_5{
public static void main(String[] alio){
int n = 100;
for(int i=1;i<=100;i++){
int y = i%5;
if(y==0)
System.out.println(i);
int x = i%7;
if(x==0&&y!=0)
System.out.println(i);
}
}
}
steven70101 發表在 痞客邦 留言(0) 人氣(158)

超級!霸王!電影彈!!!!
-------------------------------------------------------------------------------------------------
import java.io.*;public class ex6_3{
public static void main(String[] alio)
throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("請輸入第一個整數:");
String str = br.readLine();
int i = Integer.parseInt(str);
System.out.println("請輸入第二個整數:");
String str2 = br.readLine();
int j = Integer.parseInt(str2);
int sum = 0;
if(i<j){
for(int x=i+1;x<j;x++){
sum += x;
}
}
else if(i>j){
for(int x=j+1;x<i;x++){
sum += x;
}
}
System.out.println(sum);
}
}
steven70101 發表在 痞客邦 留言(1) 人氣(104)

!?
--------------------------------------------------------------------------------------------------
以下只是備份,連基本都寫不好了,這圖形介面的根本完全霧煞煞.....
package onlyfun.caterpillar;import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.event.*;
steven70101 發表在 痞客邦 留言(0) 人氣(308)

他?他絕對不是我們的學長(茶)
-------------------------------------------------------------------------------------------------
import java.io.*;public class first{
static String s ="0";
public first(){ }
public static void main(String[] alio) throws IOException{
first fir = new first();
second sec = new second(fir);
sec.start();
fir.show();
}
void show(){
while(true){
System.out.print(s);
}
}
}
steven70101 發表在 痞客邦 留言(0) 人氣(145)