跨數(shù)據(jù)庫平臺(tái):
n 支持 oracle 的OCI
n 支持DB2的CLI,
n 支持ODBC(通過ODBC,可支持SQL SERVER,MySQL等)
Ø 跨OS平臺(tái):
n 標(biāo)準(zhǔn)C++語言,支持 unix/linux/windows
Ø 使用簡(jiǎn)單:
n 只有一個(gè)頭文件
n 接口簡(jiǎn)潔.otl_stream, otl_connect, otl_exception等就可以完成大部分工作
n 相對(duì) ProC等嵌入式開發(fā),代碼能相應(yīng)減少
Ø 性能:
n 直接訪問數(shù)據(jù)庫API接口,具有API接口的高效率,可靠性
Ø 穩(wěn)定性:
n 開源代碼,唯一的代碼文件otlv4.h,可以了解所有基于數(shù)據(jù)庫API的實(shí)現(xiàn)細(xì)節(jié)
n 從1996年開始,到今已10余年.
Ø 可讀性及可維護(hù)性:
n 標(biāo)準(zhǔn)C++代碼,不需要任何預(yù)處理
n 使用流的形式,輸入輸出異常簡(jiǎn)潔
n 減少大量代碼,
n 代碼結(jié)構(gòu)更加簡(jiǎn)潔
參考資料:
http://otl.sourceforge.net/
RSA算法 :首先, 找出三個(gè)數(shù), p, q, r, 其中 p, q 是兩個(gè)相異的質(zhì)數(shù), r 是與 (p-1)(q-1) 互質(zhì)的數(shù)...... p, q, r 這三個(gè)數(shù)便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 這個(gè) m 一定存在, 因?yàn)?r 與 (p-1)(q-1) 互質(zhì), 用輾轉(zhuǎn)相除法就可以得到了..... 再來, 計(jì)算 n = pq....... m, n 這兩個(gè)數(shù)便是 public_key ,編碼過程是, 若資料為 a, 將其看成是一個(gè)大整數(shù), 假設(shè) a < n.... 如果 a >= n 的話, 就將 a 表成 s 進(jìn)位 (s
1、 了解系統(tǒng)調(diào)用pipe()的功能和實(shí)際原理
2、 編寫一段程序,使用管道實(shí)現(xiàn)父子進(jìn)程之間的通信
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建一個(gè)子進(jìn)程
b) 子進(jìn)程調(diào)用函數(shù)write()向父進(jìn)程發(fā)送自己的進(jìn)程ID和字符串” s sending a message to parent.\n”。
c) 父進(jìn)程調(diào)用函數(shù)read()通過管道讀出子進(jìn)程發(fā)來的消息,將消息輸出屏幕,然后終止
This book is the most accurate and up-to-date source of information the STL currently available. ... It has an approach and appeal of its own: it explains techniques for building data structures and algorithms on top of the STL, and in this way appreciates the STL for what it is - a framework. Angelika Langer, Independent Consultant and C++ Report Columnist "A superbly authored treatment of the STL......an excellent book which belongs in any serious C++ developer s library." Jim Armstrong, President 2112 F/X, Texas. \n
The C++ Standard Template Library (STL) represents a breakthrough in C++ programming techniques. With it, software developers can achieve vast improvements in the reliability of their software, and increase their own productivity.