公告版位
需要找什麼嗎? 左邊分類或許可以幫助你...
  • May 03 Thu 2012 12:15
  • 歷史

2012-04-28                註冊 loli-cat.com 網域

2012-04-29                計畫製作大型伺服器軟體

2012-04-30                去博客來訂C#網路程式設計書

2012-05-01                C#網路程式設計書本到貨

2012-05-02                早上5點成功將遊戲引擎與自製簡易伺服器軟體做連線

2012-05-03                成功製作小型HTML伺服器,將資訊傳給瀏覽器。計畫製作網頁伺服器軟體 ( HSP )


黃彥霖 發表在 痞客邦 留言(0) 人氣()

using System;

namespace c  // 在 c 資料夾
{
    class MainClass
    {
        public static void Main (string[] args)
        {

            Console.Write ("請輸入一個字元");
            Console.WriteLine (" u 碼為:" + Console.Read());

 

黃彥霖 發表在 痞客邦 留言(0) 人氣()

先建立A.txt,輸入 :    <br>123<br>abc<br>456<br>

 

 

import java.io.*;
import java.util.*;

public class A{
public static void main(String [] args) throws Exception{

Scanner s = new Scanner(new File("A.txt"));
s.useDelimiter("<br>");
while(s.hasNext()){

黃彥霖 發表在 痞客邦 留言(0) 人氣()

import java.io.*;
import java.net.*;
public class Downloader{
public static void main(String[] args)throws IOException{
URL url=new URL("http://163.20.63.180/javaroom/midi/alas/Other/td.mid");

InputStream is=url.openStream();

FileOutputStream fos=new FileOutputStream("td.mid");
while(true){
int i=is.read();
if(i==-1)

黃彥霖 發表在 痞客邦 留言(0) 人氣()

import java.io.*;

public class A{
public static void main(String [] args) throws Exception{

File f = new File("gg.txt");
FileReader fr = new FileReader(f);
char [] fc = new char [(int)f.length()];
fr.read(fc);
fr.close();

String s = new String(fc);
System.out.print(s);

黃彥霖 發表在 痞客邦 留言(0) 人氣()