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

正文內(nèi)容

c語言程序設計課程設計報告(1)-閱讀頁

2025-04-29 01:30本頁面
  

【正文】 /*城市*/{ char city[NUM]。 /*城市編號*/ char c_inspnum[NUM],c_consnum[NUM]。 /*指向下一個城市節(jié)點*/ struct scearea *sr_head。/** *屏幕窗口信息鏈結(jié)點結(jié)點結(jié)構(gòu) */typedef struct layer_node{ char LayerNo。 /** 彈出窗口區(qū)域坐標*/ CHAR_INFO *pContent。 /** 彈出窗口區(qū)域字符單元原屬性值存儲緩沖區(qū)*/ struct layer_node *next。/** *標簽束結(jié)構(gòu) */typedef struct labe1_bundle{ char **ppLabel。 /** 標簽定位數(shù)組首地址*/ int num。/** *熱區(qū)結(jié)構(gòu) */typedef struct hot_area{ SMALL_RECT *pArea。 /** 熱區(qū)類別(按鍵、文本框、選項框)數(shù)組首地址*/ char *pTag。 /** 熱區(qū)個數(shù)*/} HOT_AREA。 /*彈出窗口信息鏈鏈頭*/struct city *gp_head = NULL。 /*系統(tǒng)名稱*/char *gp_c_info_filename = 。 /*景區(qū)信息數(shù)據(jù)文件*/char *gp_sp_info_filename = 。 /*備份數(shù)據(jù)文件*/char *ga_main_menu[] = {文件(F), /*系統(tǒng)主菜單名*/ 數(shù)據(jù)維護(M), 數(shù)據(jù)查詢(Q), 清理屏幕(S), 幫助(H) }。int ga_sub_menu_count[] = {5, 4, 4, 2, 4}。 /*被選中的主菜單項號,初始為1*/int gi_sel_sub_menu = 0。 /*存放菜單條屏幕區(qū)字符信息的緩沖區(qū)*/CHAR_INFO *gp_buff_stateBar_info = NULL。 /*存放屏幕上字符單元屬性值的緩沖區(qū)*/char gc_sys_state = 39。 /*用來保存系統(tǒng)狀態(tài)的字符*/HANDLE gh_std_out。 /*標準輸入設備句柄*/int createlist(struct city **head)。 /*系統(tǒng)界面初始化*/void ClearScreen(void)。 /*顯示菜單欄*/void PopMenu(int num)。 /*顯示彈出窗口*/void PopUp(SMALL_RECT *, WORD, LABEL_BUNDLE *, HOT_AREA *)。 /*關(guān)閉頂層彈出窗口*/void DrawBox(SMALL_RECT *parea)。 /*主菜單下拉菜單定位*/void ShowState(void)。 /*標記被選中的主菜單項*/void TagSubMenu(int num)。 /*控制臺輸入處理*/void SetHotPoint(HOT_AREA *phot_area, int hot_num)。 /*系統(tǒng)功能模塊的選擇和運行*/BOOL ExeFunction(int main_menu_num, int sub_menu_num)。 /*退出系統(tǒng)*/BOOL LoadData(void)。 /*保存數(shù)據(jù)*/BOOL BackupData(void)。 /*恢復數(shù)據(jù)*/BOOL ExitSys(void)。 /*幫助主體*/BOOL AboutDorm(void)。 /*所有信息*/BOOL Maintainc_Info(void)。 /*維護景區(qū)信息*/BOOL Maintainsp_Info(void)。 /*查詢城市信息*/BOOL Querysr_Info(void)。 /*查詢景點信息*/void ClearWorkArea(void)。BOOL set_text_fail(void)。/*插入景點信息結(jié)點*/BOOL delsp(struct city *hp,char *sr_num,char *sp_num)。/*修改景點信息結(jié)點*/BOOL delsr(struct city *hp,char *sr_num)。/*插入景區(qū)信息結(jié)點*/BOOL modifsr(struct city *hp,char *sr_num, struct scearea *psr)。/*刪除城市信息結(jié)點*/BOOL ins_city (struct city **hp,struct city *p)。/*修改城市信息結(jié)點*/struct city *seekc(struct city *hp,char *c_num)。 /*查找景區(qū)信息結(jié)點*/struct scespo *seeksp(struct city *hp,char *sr_num,char *sp_num)。/*模糊查詢景區(qū)信息結(jié)點*/struct scearea *seek_sr(struct city *hp,int cond_num,...)。/*模糊查詢景點信息結(jié)點*/BOOL judge_c(struct city *p, char *pcondition)。/*判斷城市信息數(shù)據(jù)項是否滿足查詢條件*/BOOL judge_sp(struct scespo*psp,char *pcondition)。/*字符串與查詢條件是否滿足指定的運算關(guān)系*/void travers(struct city *head)。 /*窗口緩沖區(qū)大小*/ gh_std_out = GetStdHandle(STD_OUTPUT_HANDLE)。 /* 獲取標準輸入設備句柄*/ SetConsoleTitle(gp_sys_name)。 /*設置窗口緩沖區(qū)大小80*25*/ LoadData()。 /*界面初始化*/ RunSys(amp。 /*系統(tǒng)功能模塊的選擇及運行*/ CloseSys(gp_head)。}/** * 函數(shù)名稱: LoadData * 函數(shù)功能: 將三類基礎數(shù)據(jù)從數(shù)據(jù)文件載入到內(nèi)存緩沖區(qū)和十字鏈表中. * 輸入?yún)?shù): 無 * 輸出參數(shù): 無 * 返 回 值: bool類型, 功能函數(shù)中除了函數(shù)ExitSys的返回值可以為FALSE外, * 其他函數(shù)的返回值必須為TRUE. * * 調(diào)用說明: 為了能夠以統(tǒng)一的方式調(diào)用各功能函數(shù), 將這些功能函數(shù)的原型設為 * 一致, 即無參數(shù)且返回值為BOOL. 返回值為FALSE時, 結(jié)束程序運行. */ BOOL LoadData(){ int Re = 0。 gc_sys_state |= 2。gp_head)。 gc_sys_state amp。 if (gc_sys_state (1 | 2 | 4 | 8 | 16)) { /*數(shù)據(jù)加載提示信息*/ printf(\n系統(tǒng)基礎數(shù)據(jù)不完整!\n)。 getch()。}/** * 函數(shù)名稱: createlist * 函數(shù)功能: 從數(shù)據(jù)文件讀取基礎數(shù)據(jù), 并存放到所創(chuàng)建的十字鏈表中. * 輸入?yún)?shù): 無 * 輸出參數(shù): head 主鏈頭指針的地址, 用來返回所創(chuàng)建的十字鏈. * 返 回 值: int型數(shù)值, 表示鏈表創(chuàng)建的情況. * 0 空鏈, 無數(shù)據(jù) * 4 已加載城市信息數(shù)據(jù),無景區(qū)信息和景點信息數(shù)據(jù) * 12 已加載城市信息和景區(qū)基本信息數(shù)據(jù),無景點信息數(shù)據(jù) * 28 三類基礎數(shù)據(jù)都已加載 * * 調(diào)用說明: */int createlist(struct city **head) /*創(chuàng)建鏈表*/{ struct city *hp=NULL,*p。 struct scespo *psp。 int find。 if((pFile=fopen(gp_c_info_filename,r+))==NULL) { printf(城市信息數(shù)據(jù)文件打開失??!\n)。 } printf(城市信息數(shù)據(jù)文件打開成功!\n)。 fscanf(pFile,%s\t\t%s\t\t%s\t\t%s\n,pc_num,p city,pc_inspnum,pc_consnum)。 pnext=hp。 } fclose(pFile)。 return re。 (*head)=hp。 if((pFile=fopen(gp_sr_info_filename,r))==NULL) { printf(景區(qū)基本信息數(shù)據(jù)文件打開敗!\n)。 } printf(景區(qū)基本數(shù)據(jù)文件打開成功!\n)。 while(! feof(pFile)) { psr=(struct scearea*)malloc(sizeof(struct scearea))。 psrsp_head=NULL。 /*在主鏈上查找蓋景區(qū)所在城市對應的主鏈結(jié)點*/ while(p!=NULLamp。strcmp(psrsr_c_num , pc_num)!=0) { p=pnext。 psr_head=psr。 }} fclose(pFile)。 return re。 re+=16。 //創(chuàng)建結(jié)點,存放從數(shù)據(jù)文件中讀出的景點信息 fscanf(pFile,%s\t\t%s\t\t%s\t\t%s\t\t%s\t\t%s\n,psp sp_c_num,psp sp_sr_num,psp sp_num,psp scespo,psp sp_location,psp sp_time)。 find=0。amp。 while(psr!=NULLamp。find==0) { if(strcmp(psrsr_num,pspsp_sr_num)==0) { find=1。 } psr=psrnext。 } if(find) //如果找到,則以后進先出方式插入景點信息支鏈中 { pspnext=psrsp_head。 } //如果沒有找到,則釋放所創(chuàng)建結(jié)點的內(nèi)存空間 else { free(psp)。 return re。 /*黃色前景和藍色背景*/ SetConsoleTextAttribute(gh_std_out, att)。 /* 清屏*/ /*創(chuàng)建彈出窗口信息堆棧,將初始化后的屏幕窗口當作第一層彈出窗口*/ gp_scr_att = (char *)calloc(SCR_COL * SCR_ROW, sizeof(char))。 gp_top_layerLayerNo = 0。 /*彈出窗口的區(qū)域為整個屏幕窗口*/ gp_top_layer = 0。 gp_top_layer = SCR_ROW 1。 gp_top_layerpScrAtt = gp_scr_att。 ShowMenu()。 /*顯示狀態(tài)欄*/ retu
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1