freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計物聯(lián)網(wǎng)(存儲版)

2025-07-16 01:21上一頁面

下一頁面
  

【正文】 chedule[_id]。 return true。 i 99。 ok = 1。 } out co endl。 k (int)schedule[where].size()。 out property_inf[where][j].is_key 。 for(int j = 0。 (, ios::out)。 for(int j = 0。 file_pro_id[i][s] = j。 id[name] = ()。 i++) for(int j = 0。 //讀文件 bool write_to_file()。 //插入新的表名 bool insert_file_info(string name, vector information info)。 // 某個表的屬性 id int _vis[100][100]。 struct information{ string all[100]。 // 屬性名 string data_type。 to_big(word[1]) == YOU amp。 int ok = 0。 continue。 (word[2])。 } int ok = update_table(word, file)。 if(!ok){ printf(Data into error\n)。 ()。 } Create_Table create。 } (word[i])。 }else if(to_big(word[0]) == REVOKE){ if(!(user_name)){ cout No permission\n。 for(int i = 1。 // } if(to_big(word[0]) == CHANGE amp。 bool ok = (str)。 while(true){ cout 。 |\n)。 printf(| Create/Select/Insert/Delete/Updata |\n)。power_id[DELETE] = 4。 山東科技大學(xué)學(xué)生課程設(shè)計 }else{ printf(Does not recognize the mand, try again\n)。 else{ printf(Success!\n)。 cin user_name。 return 1。op)。Login39。 printf(| |\n)。 // 開始輸入 }。 wh[(int)()1] == (int)()) return 0。) (())。 } if(s[i] == 39。 !mark amp。 || s[i] == 39。 if((s[i] == 39。) _begin += s[i]。 amp。 amp。 amp。 39。(39。39。 vector int wh。 i++) cout word[i] ... endl。 } 的實現(xiàn) ifndef GET_WORD_H_INCLUDED define GET_WORD_H_INCLUDED include cstdio include iostream include algorithm include string include vector include map 山東科技大學(xué)學(xué)生課程設(shè)計 include set include iomanip using namespace std。 其實直接 ifstream 這些操作是相對來說不安全 的,因為我們可以直接從文檔中打開即可查看表的內(nèi)容,更好的是可以使用二進(jìn)制文件進(jìn)行操作,這樣就可以帶來極大的安全性和方便性的優(yōu)勢。 山東科技大學(xué)學(xué)生課程設(shè)計 ( 3)提示了沒有權(quán)限。 的實現(xiàn) Grand 是給用戶賦予權(quán)限的,這個操作只允許在 admin 下才能執(zhí)行,這個時候,在 user 類中的 is_main 函數(shù)就可以用上力了。 的實現(xiàn) Insert 的實現(xiàn),我個人實現(xiàn)的是多條數(shù)據(jù)同時插入。 //獲取某個表的所有信息 bool read_file()。 //更新表的信息 bool insert_file_name(string name)。 // 某個表的所有信息 map string,int file_pro_id[100]。 } }。 類的實現(xiàn) struct property{ string _name。 } bool is_main(string name)。 //賬戶密碼與賬號匹配 vector string user_name。以用戶類 User 為最高級別類,在這個類的基礎(chǔ)之上,再對每一個表進(jìn)行操作,如果有權(quán)限就操作,沒權(quán)限就不能操作。然后對這所有的單詞進(jìn)行解析,因為在每個位置相應(yīng)的出現(xiàn)的應(yīng)該是固定的單詞,所以可以直接判斷這個單詞是不是合法,如果合法就繼續(xù),不合法就可以提示語義錯誤。 //是否是 admin用戶 。 //賬 戶添加權(quán)限 bool revoke_pow(int where, int op)。 // 是否為主鍵 bool _unique。 }。 //顯示表信息 int get_id(string name)。 //插入新的表 bool insert_file_id(string name, map string, int id)。 其中 information 實現(xiàn)的是對某一條信息的存儲, property 實現(xiàn)的是對某一種屬性的存儲,而 file 則是對這兩種信息的整合。 的實現(xiàn) Delete 的實現(xiàn)也比較簡單,因為所有表的數(shù)據(jù)全部才在程序內(nèi)存里,所以我在刪除的時候沒有 直接刪除內(nèi)存,而是標(biāo)記某一條信息是否存在,用 vis[]數(shù)組標(biāo)記, 等于 1 表示存在,這樣涉及到一個問題,在創(chuàng)建表的時候要把所有 vis 都標(biāo)記成 1。 ( 2)在刪除列的時候因為是直接標(biāo)記的,所以輸出列的條數(shù)的時候,會多,后來想了想是自己并沒有真實的刪除某條消息,所以在輸出個數(shù)的時候還是可以查到的。 ( 5)重新回到 admin,來測試一系列功能,首先測試 CREATE; 山東科技大學(xué)學(xué)生課程設(shè)計 然后再創(chuàng)建一次 提示名字重復(fù)。繼續(xù)加油提高代碼能力。 // 把輸入的一個字符串進(jìn)行分析成每一個單詞 void show()。39。 i++){ // if(!isdigit(s[i]) amp。 s[i] != 39。 s[i] != 39。 s[i] != 39。,39。)39。39。) { bracket ++。)39。\t39。amp。amp。 for(int i = 0。 /* CREATE TABLE STUDENT ( NAME CHAR(80) UNIQUE, AGE NUMERIC(30, 20), NUM INT PRIMARY KEY, COU INT UNIQUE )。 _file file。 printf(| |\n)。, Write 3 to 39。 cin user_name。 return 0。 string two_pass。 } _count++。 // ()。 int __ok = enter_interface()。help database39。Say you again39。 while((s = getchar()) != EOF){ str += s。 continue。 }else if(to_big(word[0]) == GRAND){ // printf(......\n)。 break。 string oth_name。 j++) ((oth_name), power_id[add[j]])。 continue。 to_big(word[1]) == INTO){ if(!(__id, 2)) { printf(No permission\n)。 vector information _in = ()。 } }else if(to_big(word[0]) == DELETE){ if(!(__id, 4)) { printf(No permission\n)。 to_big(word[1]) == TABLE){ if(!(__id, 5)) { printf(No permission\n)。 }else if(to_big(word[0]) == HELP amp。 i++){ ok = 1。 }else{ 山東科技大學(xué)學(xué)生課程設(shè)計 Error。 // 是否唯一 string len。 class _file{ private: vector string all_file_name。 //獲取文件 id int get_pro_num(string name)。 //插入某個表的屬性 id vector property get_property(string name)。 (, ios::in)。 in num。 for(int j = 0。 山東科技大學(xué)學(xué)生課程設(shè)計 } int num_info。 [k] = 1。 i (int)()。 } out pro_num endl。 out property_inf[where][j].() 。 j (int)property_inf[where].size()。 k++){ int ok = 0。 } } if(ok) out endl。 } bool _file::update_file_info(string name, vector informati
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1