瀏覽單個文章
xeonic
Major Member
 

加入日期: Oct 2003
文章: 119
[java] 如何寫會秀出原始碼的程式?

我現在用java寫一個會印出程式本身原始碼的程式
用BufferedReader和FileReader後很簡單的寫了出來
不過後來發現老師說不能用InputStream寫
不知有沒有高手可以指導一下要如何寫?

原題目:
Write a computer program that takes no input (i.e., no command line arguments nor files nor data streams) and outputs its source code. Provide both the source and an output of it running.
     
      
舊 2006-02-23, 05:38 AM #1
回應時引用此文章
xeonic離線中