
EncryptDemo.cpp 的程式原始碼如下
#include <iostream>
using std::cout;
using std::endl;
#include "Encrypt.h"
int main()
{
cout << endl;
Encrypt encryptor;
cout << encryptor.getcArray() << endl << endl ;
string demo = "There is no spoon.";
cout << demo << endl;
string result1 = encryptor.toEncode(demo);
cout << result1 << endl << endl;
string result2 = encryptor.toDecode(result1);
cout << result2 << endl << endl;
return 0;
}
/* 《程式語言教學誌》的範例程式
http://pydoing.blogspot.com/
檔名:EncryptDemo.cpp
功能:示範 C++ 程式
作者:張凱慶
時間:西元 2012 年 10 月 */您可以繼續參考
範例程式碼
相關目錄
回 C++ 入門指南
回 C++ 教材目錄
回首頁
參考資料
C++ reference
Qt Developer Network
沒有留言:
張貼留言