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

正文內(nèi)容

數(shù)據(jù)庫(kù)課程設(shè)計(jì)物聯(lián)網(wǎng)-資料下載頁(yè)

2025-06-06 01:21本頁(yè)面
  

【正文】 _name = __name, data_type = _date_type, is_key = _is_key, _unique = __unique, len = _len, NUMERIC = _NUMERIC。 } bool friend operator (property a, property b){ return 。 } }。 struct information{ string all[100]。 int vis[100]。 }。 class _file{ private: vector string all_file_name。 // 創(chuàng)建的所有的 表的名字 map string, int id。 // 每一個(gè)表的 id vector property property_inf[100]。// 某個(gè)表所包含的屬性 vector information schedule[100]。 // 某個(gè)表的所有信息 map string,int file_pro_id[100]。 // 某個(gè)表的屬性 id int _vis[100][100]。 // 某個(gè)表的某個(gè)屬性是否顯示 public: 山東科技大學(xué)學(xué)生課程設(shè)計(jì) void show_file(string name)。 //顯示表信息 int get_id(string name)。 //獲取文件 id int get_pro_num(string name)。 //獲取某一個(gè)表的屬性個(gè)數(shù) bool delete_pro(int where, int ver)。 //刪除某一列 bool delete_pro_row(int where, int row)。 //刪除某一行 bool update_file_info(string name, vector information info)。 //更新表的信息 bool insert_file_name(string name)。 //插入新的表名 bool insert_file_info(string name, vector information info)。 //插入某個(gè)表的信息 bool insert_list(string name, vector property pro)。 //插入新的表 bool insert_file_id(string name, map string, int id)。 //插入某個(gè)表的屬性 id vector property get_property(string name)。 //獲取某個(gè)表的屬性名 map string, int get_pro_id(string name)。 //獲取某個(gè)表的屬性 id vector string get_all_table_name()。 //獲取所有的表名 vector information get_file_info(string name)。 //獲取某個(gè)表的所有信息 bool read_file()。 //讀文件 bool write_to_file()。 山東科技大學(xué)學(xué)生課程設(shè)計(jì) //寫文件 }。 bool _file::read_file(){ ifstream in。 (, ios::in)。 int num。 int pro_num。 for(int i = 0。 i 99。 i++) for(int j = 0。 j 99。 j++) _vis[i][j] = 1。 in num。 for(int i = 0。 i num。 i++){ string name。 in name。 id[name] = ()。 (name)。 in pro_num。 for(int j = 0。 j pro_num。 j++){ string s, data_type, len, NUMERIC。 bool is_key, _unique。 in s data_type is_key _unique len NUMERIC。 file_pro_id[i][s] = j。 property_inf[i].push_back(property(s, data_type, is_key, _unique, len, NUMERIC))。 _vis[i][j] = 1。 山東科技大學(xué)學(xué)生課程設(shè)計(jì) } int num_info。 in num_info。 for(int k = 0。 k num_info。 k++){ information info。 for(int j = 0。 j pro_num。 j++){ in [j]。 [k] = 1。 } schedule[i].push_back(info)。 } } ()。 return true。 } bool _file::write_to_file(){ ofstream out。 (, ios::out)。 out () endl。 for(int i = 0。 i (int)()。 i++){ out all_file_name[i].c_str() endl。 string name = all_file_name[i]。 int where = id[name]。 int pro_num = 0。 for(int j = 0。 j (int)property_inf[where].size()。 j++){ if(_vis[where][j]) 山東科技大學(xué)學(xué)生課程設(shè)計(jì) pro_num++。 } out pro_num endl。 for(int j = 0。 j (int)property_inf[where].size()。 j++){ if(_vis[where][j]){ out property_inf[where][j].() 。 out property_inf[where][j].() 。 out property_inf[where][j].is_key 。 out property_inf[where][j]._unique 。 out property_inf[where][j].() 。 out property_inf[where][j].() 。 out endl。 } } string null = NULL。 int co = 0。 for(int k = 0。 k (int)schedule[where].size()。 k++){ int ok = 0。 for(int j = 0。 j (int)property_inf[where].size()。 j++){ if(!_vis[where][j]) continue。 if(schedule[where][k].vis[j] == 1){ ok = 1。 } else if(schedule[where][k].vis[j] == 0){ ok = 1。 } 山東科技大學(xué)學(xué)生課程設(shè)計(jì) } if(ok) co++。 } out co endl。 for(int k = 0。 k (int)schedule[where].size()。 k++){ int ok = 0。 for(int j = 0。 j (int)property_inf[where].size()。 j++){ if(!_vis[where][j]) continue。 if(schedule[where][k].vis[j] == 1){ out schedule[where][k].all[j] 。 ok = 1。 } else if(schedule[where][k].vis[j] == 0){ cout null 。 ok = 1。 } } if(ok) out endl。 } } ()。 return true。 } bool _file::delete_pro_row(int where, int row){ 山東科技大學(xué)學(xué)生課程設(shè)計(jì) // printf(%d %d\n, where, row)。 for(int i = 0。 i 99。 i++) schedule[where][row].vis[i] = 1。 return true。 } bool _file::update_file_info(string name, vector information info){ int where = id[name]。 schedule[where].clear()。 for(int i = 0。 i (int)()。 i++) schedule[where].push_back(info[i])。 return true。 } vector information _file::get_file_info(string name){ int _id = id[name]。 return schedule[_id]。 } bool _file::delete_pro(int where, int ver){ if(property_inf[where][ver].is_key) return 0。 _vis[where][v
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1