
encryptdemo.cs 的程式原始碼如下
using System;
using Encryptor;
class EncryptDemo {
static void Main() {
Encrypt e = new Encrypt();
Console.WriteLine("e: " + e.Code);
string s1 = "There is no spoon.";
Console.WriteLine(s1);
string s2 = e.toEncode(s1);
Console.WriteLine(s2);
string s3 = e.toDecode(s2);
Console.WriteLine(s3);
}
}
/* 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:encryptdemo.cs
功能:示範 C# 程式
作者:張凱慶
時間:西元 2012 年 10 月 */您可以繼續參考
範例程式碼
相關目錄
回 C# 入門指南
回 C# 教材
回首頁
參考資料
C# 程式設計手冊
C# Programming
Start - mono
Mono Documentation
沒有留言:
張貼留言