JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Jute 討論區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
話題被移動
該話題已被移動 - anthonychen , 2005-11-17 09:45
如果您尚不清楚該話題被移動的原因,請參考論壇規則以及本版公告或者聯系本版版主。
本主題所含的標籤
無標籤
作者 請問如何在這張貼程式碼
Jojohn





發文: 19
積分: 0
於 2005-11-17 08:28 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如題,在JavaWorld這邊要如何貼程式碼呀Cool?
是要打什麼命令嗎?還是按那個扭後貼?謝啦~~


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
小新





發文: 127
積分: 0
於 2005-11-17 08:51 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請參考文章即可

只要加上
1
 
中間包程式碼即可。


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
Jojohn





發文: 19
積分: 0
於 2005-11-23 10:02 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
嗯~~好問題,那個…怎麼加?

reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
Jojohn





發文: 19
積分: 0
於 2005-11-23 10:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
測試…
1
哦~~我知道了,謝謝啦~~


Jojohn edited on 2005-11-23 10:08
reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
geyser





發文: 74
積分: 1
於 2006-03-29 23:50 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1

  


test


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
geyser





發文: 74
積分: 1
於 2006-03-29 23:52 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
test


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
loveweny





發文: 5
積分: 0
於 2006-04-11 16:42 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
test
1
1234


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:小新]
davanccy





發文: 4
積分: 0
於 2006-06-29 16:11 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
8
9
public class test {
 
   public static void main(String [] args) {
 
    System.out.println("Hello Test");
 
  }
 
}


davanccy edited on 2006-06-29 16:14
reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:davanccy]
baaziru





發文: 5
積分: 0
於 2006-12-01 13:43 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思
也借版面來測試一下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.TextArea;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
 
public class UDPReceiver extends Frame{
  
  static TextArea area_1;
  Button bt_1;
  Button bt_2;
  
  public static void main(String[] args) {
    UDPReceiver f=new UDPReceiver("深江丸UDPReceiver",400,300);
    f.addWindowListener(new WindowClose());
    f.haichi();
    f.show();
    receive();
  }
  
  public UDPReceiver(String title,int width,int height){
    super(title);
    //this.setSize(400,300);
    this.setBounds(350,150,400,300);
  }
  
  void haichi(){
    setLayout(new FlowLayout());
    area_1=new TextArea("受信開始の準備が出来ました\n",12,50);
    add(area_1);
    bt_1=new Button("Clear");
    bt_1.addActionListener(new myListener2());
    add(bt_1);
  }
  
  static void receive(){
    try{
          byte buf[] = new byte[1000];
          /** データを受信 **/
          // データグラムソケットを作成(引数にポート番号を指定)
          DatagramSocket socket = new DatagramSocket(5555);
          // 受信するデータグラムパケットを作成
          DatagramPacket packet = new DatagramPacket(buf, buf.length);
          // データグラムパケットを受信します。
          // 受信するとpacketのバッファにデータが格納されます。
          while(true){
            socket.receive(packet);
            // 受信したデータを取得
            String data = new String(packet.getData(),0,packet.getLength());
            System.out.println("\"" + data + "\"を受信しました");
            //area_1.setText(area_1.getText()+"\n"+data);
            area_1.append("Message Length:"+packet.getLength()+"\n");
            area_1.append(data+"\n");
          }
        }catch(Exception e){
          e.printStackTrace();
        }
  }
  
  class myListener2 implements ActionListener{
    public void actionPerformed(ActionEvent e){
      area_1.setText("");
    }
  }
 
}
 
class WindowClose extends WindowAdapter {
  public void windowClosing( WindowEvent evt ) {
    System.exit( 0 );
  }
}
 


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
wangjc





發文: 10
積分: 0
於 2007-01-30 11:42 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Sorry!! 練習一下如何貼程式碼^^

1
2
3
4
5
6
7
public class Test
{
     public static void main(String[] args) 
  {
    System.out.println("Hello World!");
  }
}


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
androgyny





發文: 2
積分: 0
於 2007-05-06 15:36 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
test test

1
123


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
netboy





發文: 3
積分: 0
於 2007-05-08 11:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这里成了测试区啦?

reply to postreply to post
Jute CMS/Jute Forum/Jute Blog
jute2008@hotmail.com
作者 Re:請問如何在這張貼程式碼 [Re:netboy]
harvey





發文: 87
積分: 0
於 2007-08-17 13:58 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
public class Test
{
     public static void main(String[] args) 
  {
    System.out.println("Hello World!");
  }
}


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
simontiis





發文: 28
積分: 0
於 2007-10-04 13:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
測試


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
ez880





發文: 12
積分: 0
於 2007-11-28 14:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
借一下版面測試


ez880 edited on 2007-11-28 14:18
reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
flyworld

Java 好吃嗎~~~



發文: 78
積分: 1
於 2008-02-21 00:47 user profilesend a private message to usersend email to flyworldreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
zdfhzdh


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
a123951





發文: 2
積分: 0
於 2008-11-10 19:28 user profilesend a private message to usersend email to a123951reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
hello


reply to postreply to post
重要的是,你的個性喜不喜歡將來從事這樣的工作-- 一個人長時間、很有耐心地坐在電腦前。
作者 Re:請問如何在這張貼程式碼 [Re:harvey]
deepdish814





發文: 3
積分: 0
於 2008-12-05 16:24 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <bitset>
 
using namespace std;
 
#define FALSE 0
#define bSize 1000
 
typedef  bitset<bSize> Prime_Set;
 
Prime_Set primes;
 
void make_primes() {
   primes.set();
   for( int i = 2; i * i < bSize; i++ )
      if( primes.test(i) )
         for(int k = i * i; k < bSize; k += i)
            primes.set( k, FALSE );
}
int main() {
   make_primes();
   for(int k = 2; k < bSize; k++)
      if( primes.test(k) )
         cout << k << endl;
   system("pause");
   return 0;
}
 


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
kidtoy





發文: 37
積分: 0
於 2008-12-19 23:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
test


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:davanccy]
Emiel





發文: 1
積分: 0
於 2009-02-26 21:58 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
test


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
gn890835





發文: 17
積分: 0
於 2009-05-18 01:02 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
測試
1
測試


reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:gn890835]
harrydb





發文: 11
積分: 0
於 2010-05-17 11:49 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
gn890835 wrote:
測試
1
測試



測試
gn890835 wrote:
測試
1
測試



測試

測試
1
測試



reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:Jojohn]
haur576





發文: 271
積分: 1
於 2013-11-18 22:31 user profilesend a private message to usersend email to haur576reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你們難道不知道發文章時有預覽這個按鈕嗎?

reply to postreply to post

作者 Re:請問如何在這張貼程式碼 [Re:haur576]
sir_ap





發文: 93
積分: 0
於 2013-11-19 09:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你是在跟三年前的他們還是今天的他們說?

reply to postreply to post
作者 Re:請問如何在這張貼程式碼 [Re:sir_ap]
haur576





發文: 271
積分: 1
於 2013-11-19 20:31 user profilesend a private message to usersend email to haur576reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sir_ap wrote:
你是在跟三年前的他們還是今天的他們說?

跟所有看此文章的人說


reply to postreply to post

» JWorld@TW »  Jute 討論區

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8