電子詞典 char5

2021-06-19 13:50:57 字數 601 閱讀 1155

【電子詞典】:做乙個簡單的電子詞典。在檔案dictionary.txt中(本文後附了一部分(b打頭的詞)作為除錯,儲存的是英漢對照的乙個詞典,詞彙量近8000個,英文與釋義間用』\t』隔開。程式設計序,將檔案中的內容讀到兩個陣列e和c中,分別代表英文和中文,由使用者輸入英文詞,顯示中文意思。執行程式後,支援使用者連續地查詞典,直到輸入「0000」結束,如下圖:

#include #include#include#includeusing namespace std;  

string e[8000],c[8000]; //英文和中文陣列,要由檔案中讀入

int wordsnum=0; //詞庫中實際的詞彙條數

int binseareh(int low, int high, string k);

int main( )

infile.close();

do

return -1; //當low>high時表示查詢區間為空,查詢失敗

}

mysql電子詞典 電子詞典

一 功能說明使用者可以登入和註冊 登入憑藉使用者名稱和密碼登入 註冊要求使用者必須填寫使用者名稱,密碼,其他內容自定 使用者名稱要求不能重複 要求使用者資訊能夠長期儲存可以通過基本的圖形介面print以提示客戶端輸入。程式分為服務端和客戶端兩部分 客戶端通過print列印簡單介面輸入命令發起請求 服...

簡易電子詞典

01 0203 0405 0607 0809 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 3637 3839 4041 4243 4445 4647 4849 5051 5253 5455 5657 5859 60...

SQLite 電子詞典

伺服器部分 段 include include include include include include include include include include define n 16 define r 1 user register define l 2 user login def...