Ruby 入門指南 - encryptdemo.rb





































Ruby 入門指南 - encryptdemo.rb









encryptdemo.rb 的程式原始碼如下

require "./encrypt.rb"

e = Encrypt.new
s1 = "There is no spoon."
puts
puts e.getCode
s2 = e.toEncode(s1)
puts s2
s3 = e.toDecode(s2)
puts s3
puts

=begin
《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:encryptdemo.rb
功能:示範 Ruby 程式
作者:張凱慶
時間:西元 2012 年 12 月
=end



您可以繼續參考
範例程式碼

  • encrypt.rb

  • encryptdemo.rb

  • encryptgui.rb

  • guidemo.rb





相關目錄

回 Ruby 入門指南
回 Ruby 教材
回首頁



參考資料

http://www.ruby-lang.org/en/
http://www.ruby-lang.org/en/documentation/
http://rubylearning.com/
http://www.techotopia.com/index.php/Ruby_Essentials
http://pine.fm/LearnToProgram/
http://ruby-doc.org/docs/ProgrammingRuby/
http://www.tutorialspoint.com/ruby/index.htm
http://www.rubyist.net/~slagell/ruby/
http://en.wikibooks.org/wiki/Ruby_programming_language
http://www.ruby-doc.org/core-1.9.3/
http://www.ruby-doc.org/stdlib-1.9.3/







沒有留言:




















window.___gcfg = { 'lang': 'zh-TW' };





Popular posts from this blog

迅雷 Thunder 7.9.43.5054 免安裝版 (9.1.41.914 安裝版) - 支援BT下載的萬用 檔案下載工具

Tracker 5.0.1 免安裝中文版 - 物理實驗影像分析軟體

Nhiều đồn đoán cho rằng bộ đồ "phá vỡ quy tắc" của Meghan Markle được lấy cảm hứng từ trang phục của Công nương Diana