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

正文內容

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

2025-08-05 01:21上一頁面

下一頁面
  

【正文】 // ()。 else{ cout Success endl。 } vector string _all = ()。 struct property{ string _name。 // 某個表的所有信息 map string,int file_pro_id[100]。 //獲取某個表的所有信息 bool read_file()。 in name。 k++){ information info。 int pro_num = 0。 for(int k = 0。 if(schedule[where][k].vis[j] == 1){ out schedule[where][k].all[j] 。 i++) schedule[where].push_back(info[i])。 } bool _file::update_file_info(string name, vector information info){ int where = id[name]。 k++){ int ok = 0。 out property_inf[where][j].() 。 i (int)()。 山東科技大學學生課程設計 } int num_info。 in num。 //插入某個表的屬性 id vector property get_property(string name)。 class _file{ private: vector string all_file_name。 }else{ 山東科技大學學生課程設計 Error。 }else if(to_big(word[0]) == HELP amp。 } }else if(to_big(word[0]) == DELETE){ if(!(__id, 4)) { printf(No permission\n)。 to_big(word[1]) == INTO){ if(!(__id, 2)) { printf(No permission\n)。 j++) ((oth_name), power_id[add[j]])。 break。 continue。Say you again39。 int __ok = enter_interface()。 } _count++。 return 0。, Write 3 to 39。 _file file。 for(int i = 0。amp。)39。39。,39。 s[i] != 39。 i++){ // if(!isdigit(s[i]) amp。 // 把輸入的一個字符串進行分析成每一個單詞 void show()。 ( 5)重新回到 admin,來測試一系列功能,首先測試 CREATE; 山東科技大學學生課程設計 然后再創(chuàng)建一次 提示名字重復。 的實現(xiàn) Delete 的實現(xiàn)也比較簡單,因為所有表的數(shù)據(jù)全部才在程序內存里,所以我在刪除的時候沒有 直接刪除內存,而是標記某一條信息是否存在,用 vis[]數(shù)組標記, 等于 1 表示存在,這樣涉及到一個問題,在創(chuàng)建表的時候要把所有 vis 都標記成 1。 //插入新的表 bool insert_file_id(string name, map string, int id)。 }。 //賬 戶添加權限 bool revoke_pow(int where, int op)。然后對這所有的單詞進行解析,因為在每個位置相應的出現(xiàn)的應該是固定的單詞,所以可以直接判斷這個單詞是不是合法,如果合法就繼續(xù),不合法就可以提示語義錯誤。 //賬戶密碼與賬號匹配 vector string user_name。 類的實現(xiàn) struct property{ string _name。 // 某個表的所有信息 map string,int file_pro_id[100]。 //獲取某個表的所有信息 bool read_file()。 的實現(xiàn) Grand 是給用戶賦予權限的,這個操作只允許在 admin 下才能執(zhí)行,這個時候,在 user 類中的 is_main 函數(shù)就可以用上力了。 其實直接 ifstream 這些操作是相對來說不安全 的,因為我們可以直接從文檔中打開即可查看表的內容,更好的是可以使用二進制文件進行操作,這樣就可以帶來極大的安全性和方便性的優(yōu)勢。 i++) cout word[i] ... endl。39。 39。 amp。) _begin += s[i]。 || s[i] == 39。 } if(s[i] == 39。 wh[(int)()1] == (int)()) return 0。 printf(| |\n)。op)。 cin user_name。 山東科技大學學生課程設計 }else{ printf(Does not recognize the mand, try again\n)。 printf(| Create/Select/Insert/Delete/Updata |\n)。 while(true){ cout 。 // } if(to_big(word[0]) == CHANGE amp。 }else if(to_big(word[0]) == REVOKE){ if(!(user_name)){ cout No permission\n。 } Create_Table create。 if(!ok){ printf(Data into error\n)。 (word[2])。 int ok = 0。 // 屬性名 string data_type。 // 某個表的屬性 id int _vis[100][100]。 //讀文件 bool write_to_file()。 id[name] = ()。 for(int j = 0。 for(int j = 0。 k (int)schedule[where].size()。 ok = 1。 return true。 return true。 k (int)schedule[where].size()。 out property_inf[where][j].() 。 for(int i = 0。 _vis[i][j] = 1。 j++) _vis[i][j] = 1。 //插入新的表 bool insert_file_id(string name, map string, int id)。 }。 to_big(word[2]) == AGAIN){ break。 if(!ok) printf(Select Failed\n)。 else{ (word[1])。amp。 j (int)()。 i++){ if(to_big(word[i]) == TO){ oth_name = word[i+1]。 if(!ok) { Error。 printf(| 39。 power_id[ALTER] = 5。 return 1。 if(_count = 3){ printf(Failed!\n You is not the user!\n)。Set Up39。 string user_name, user_pass。 if(() == 0) return 1。 () 0 amp。 || s[i] == 39。 s[i] != 39。 s[i] != 39。amp。 i (int)()。 //單詞集合 public: int Analysis(string s)。 ( 4)選擇 1 進行登錄 admin 山東科技大學學生課程設計 這樣就可以看得出, create 被授權,額可以創(chuàng)建表了。 多條輸出舉例: Insert into student Values(‘19’, ‘HH’), (‘20’, ‘JJ’)。 //插入某個表的信息 bool insert_list(string name, vector property pro)。 int vis[100]。 //從文件讀取所有用戶信息 bool add_pow(int where, int op)?!?、 ’(’、 ’)’。 //用戶名 map string, int user_id。 // 屬性名 string data_type。 // 某個表的屬性 id int _vis[100][100]。 //讀文件 bool write_to_file()。 ( 1)印象最深刻的時候 就是文件操作上的問題,在讀取到一個表的所有信息之后,再進行其他操作的時候,只可以識別名字,而其他的操作都不能使用了,調了好長時間,還以為 ifstream 這些數(shù)據(jù)流的問題呢,后來在讀完之后是正確的,然后在另一個文件里面是錯誤的,才找到真正錯在哪。 包括自己去答辯的時候,老師告訴了我正則表達式,這是一種很方便的判斷字符串的方法,相對于自己寫的字符串處理很多很多情況都沒法處理到,既麻煩,又不高效。 } vector string Anal_Word:: get_word(){ return word。 amp。 amp。amp。 if(s[i] == 39。39。,39。 return 1。 printf(| |\n)。 if(op == 1){ int _count = 0。 printf(Paseword: )。 } } } void _enter::_begin(){ ()。 printf(| Grand/Revoke |\n)。 string str。amp。 continue。
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1