【正文】
the whole journey seemed like a blur of panic and confusion. “I saw Stan Shunpike…. You know, the bloke who was the conductor on the Knight Bus? And I tried to D isarm him instead of – well, he doesn?t know what he?s doing, does he? He must be Imperiused!” Lupin looked aghast. “ Harry, the time for Disarming is past! These people are trying to capture and kill you! At least Stun if you aren?t prepared to kill!” “ We were hundreds of feet up! Stan?s not himself, and if I Stunned him and he?d fallen, he?d have died the same as if I?d used Avada Kedavra! Expelliarmus saved me from Voldemort two years ago,” Harry added defiantly. Lupin was reminding him of the sneering Hufflepuff Zacharias Smith, who had jeered at Harry for wanting to teach Dumbledore?s Army how to Disarm. “ Yes, Harry,” said Lupin with painful restraint, “and a great number of Death Eaters witnessed that happening! Five me, but it was a very unusual move then, under the imminent threat of death. Repeating it tonight in front of Death Eaters who either witnessed or heard about the first occasion was 。 he needed to see Hagrid with his own eyes before he would believe that he was alive. He had barely stood up, however, when a door opened and Hagrid squeezed through it, his face covered in mud and blood, limping a little but miraculously alive. “ Harry!” Knocking over tw o delicate tables and an aspidistra, he covered the floor between them in two strides and pulled Harry into a hug that nearly cracked his newly repaired ribs. “Blimey, Harry, how did yeh get out o? that? I thought we were both goners.” “ Yeah, me too. I can?t believe – ” Harry broke off. He had just noticed the woman who had entered the room behind Hagrid. “ You!” he shouted, and he thrust his hand into his pocket, but it was empty. “ Your wand?s here, son,” said Ted, tapping it on Harry?s arm. “It fell right beside you, I picked it up…And that?s my wife you ?re shouting at.” “ Oh, I?m – I?m sorry.” As she moved forward into the room, Mrs. Tonks?s resemblance to her sister Bellatrix became much less pronounced: Her hair wa s a light soft brown and her eyes were wider and kinder. Nevertheless, she looked a little haughty after Harry?s exclamation. “ What happened to our daughter?” she asked. “Hagrid said you were ambushed。 參考文獻 : [1] 伍俊良 .《 Visual C++ 課程設計與系統(tǒng)開發(fā)案例》 .清華大學出版社 [2] 楊小平 .《 Visual C++ 項目案例導航 》 .科學出版社 [3] 鄧宗明 ,張曉競 .《 Visual C++ 編程實用技術與案例 》 .清華大學出版社 [4] 鄭阿奇 .《 Visual C++ 實用教程》 .電子工業(yè)出版社 [5] 薩師煊 ,王珊 .《數(shù)據(jù)庫系 統(tǒng)概論 》 .高等教育出版社 [6] 鄭人杰,殷人昆,陶永雷.實用軟件工程.清華大學出版社. “ Easy, now,” said Ted Tonks, placing a hand on Harry?s shoulder and pushing him back against the cushions. “That was a nasty crash you just had. What happened, anyway? Something go wrong with the bike? Arthur Weasley overstretch himself again, him and his Muggle contraptions?” “ No,” said Harry, as his scar pulsed like an open wound. “Death Eaters, loads of them – we were chased – ” “ Death Eaters?” said Ted sharply. “What d?you mean, Death Eaters? I thought they didn?t know you were being moved tonight, I thought – ” “ They knew,” said Harry. Ted Tonks looked up at the ceiling as though he could see through it to the sky above. “ Well, we know our protective charms hold, then, don?t we? They shouldn?t be able to get within a hundred yards of the place in any direction.” Now Harry understood why Voldemort had vanished。這加深了我對計算機軟件設計的理解,同時也給我提供了一次為以后實際 模擬鍛煉的機會,我感到受益非淺。在課程設計中,通過廣泛查閱與課題有關的內容,使我掌握了許多與計算機有關的東西,更重要的是使我對 VC,Access等軟件功能和應用有了一定的了解。懇請各位老師批評指正,致使我在以后的工作和實踐中加以改進和提高。程序開發(fā)的一般過程和對數(shù)據(jù)庫知識的進一步的了解,在 這個快速發(fā)展的當代社會里,數(shù)據(jù)庫已經(jīng)普遍應用在各個領域。 這次課程設計完成后,體會頗多,在學與做的過程中,取長補短,不斷學習新的知識,吸取經(jīng)驗,達到進步的目的。 同時,在軟件開發(fā)方面也累積了不少經(jīng)驗,特別是在對軟件開發(fā)工具不很熟悉的情況下,通過自己的學習和導師的指導完成了設計任務。讓用戶方便地掌握圖書的庫存情況與借閱情況,以及圖書書目、讀者信息、圖書借閱情況等,利用 DAO、 ODBC編程來實現(xiàn)信息的輸入、編輯(刪除、增加、修改)等功能,繼而完成對圖書信息數(shù)據(jù)庫、讀者信息數(shù)據(jù)庫、借閱信息數(shù)據(jù)庫的必要操作。 “ 設計體會 這次設計的主要目的是通過利用當今最流行可視化編程工具 Visual C++ 程序,用來管理由 Access2020創(chuàng)建的數(shù)據(jù)庫。在用戶通過了身份驗證之后,就可以進入系統(tǒng),進行所有的操作。 查詢 Clerk 表中是否有用戶名為 m_strName,并且密碼為 m_strPassword的記錄。這里用到在 Visual C++環(huán)境下數(shù)據(jù)庫的操作。在Serialize函數(shù)中,定義一個基于 CArchive類的對象 ar,可以使用插入運算符(《)和提取運算符(》)來續(xù)寫數(shù)據(jù),從而實現(xiàn)數(shù)據(jù)的備份和恢復。但 MFC重載了 Serialize 函數(shù)。在設計數(shù)據(jù)備份和恢復是要用到文檔的序列化( Serialize) 。在模塊的設計過程中,根據(jù)需要對數(shù)據(jù)庫中的“讀者登記表”作了相應的修改。系統(tǒng)調用‘ void shuixin()’ ,重畫網(wǎng)格。//滾動到記錄集中的第一個記錄 void MoveLast( )。//前進一個記錄 void MovePrev( )。實現(xiàn)此功能的程序流程圖如下: 開始 輸入相應數(shù)據(jù) 查找數(shù)據(jù)庫 判斷書名 /作者 調用 Edit 函數(shù) 庫存增加 調用 AddNew 添加新記錄 圖 41 “圖書資料維護”數(shù)據(jù)流程圖 在這里,圖書的添加、修改和刪除操作都與前面的用戶資料維護功能一樣,分別調用CRrecordSet 提供的 AddNew、 Edit、 Delete 成員函數(shù),可方便的實現(xiàn)對數(shù)據(jù)庫的操作,此模塊可以實現(xiàn)圖書維護的基本功能。打開“圖書資料維護模塊”對話框( CBookDlg)時 ,調用 SetButtonState()(設置按鈕狀態(tài) )、 SetTextState()(設置文本編輯框狀態(tài) )、 DisplayRecord()( 數(shù)據(jù)顯示 )函數(shù),將對話框初始化,然后可以進行相關的操作。 字段名稱 字段類型 字段大小 索引 必須填寫 READER_ID 文本 30 有(無重復) 是 NAME 文本 30 是 BOOK_ID 文本 30 是 BOOK_NAME 文本 30 是 WHYS 文本 是 AMOUNT 數(shù)字 20 是 FINE_DATE 日期 是 OK_DATE 文本 30 是 字段名稱 字段類型 字段大小 索引 必須填寫 CLASS_ID 文本 30 有(無重復) 是 CLASS_NAME 文本 30 是 1. 系統(tǒng)功能流程圖 圖 31 系統(tǒng)功能流程圖 2.“圖書資料維護”數(shù)據(jù)流圖 圖 32 “圖書資料維護”數(shù)據(jù)流圖 3.“讀者資料維護”數(shù)據(jù)流圖 調用數(shù)據(jù)庫 ? Y/N 系統(tǒng)主界面 用戶登錄 退出系統(tǒng) 圖 33 “讀者資料維護”數(shù)據(jù)流圖 四 設計思想 詳細設計思想 “資本資料維護”模塊設計: 本模塊包括兩個方面:‘圖書資料維護’和‘讀者資料維護’。在進行只需要描述某本圖書在所有圖書中的類型就完全可以了,這個信息將提供給工作人員進行借書登記時信息的一個依據(jù)。 2.“讀者資料維護”模塊: 要進行讀者資料的維護就必須有讀者的相關信息:如:讀者所使用的借閱證編號、讀者的姓名、讀者的身份證號以及止 借標志。在進行圖書分類信息的時候,字段就相應比較少了,只需要描述某本圖書在所有圖書中的類型就完全可以了,這個信息將提供給工作人員進行借書登記時信息的一個依據(jù)。 它包括:‘分類編號’和‘類名’ 詳細設計 1.“圖書資料維護”模塊: 要進行圖書資料的維護就必須有圖書的相關信息:如:圖書的分類、圖書的編號、圖書的名稱、圖書的作者、圖書出版社以及圖書的庫存量。 字段名稱 字段類型 字段大小 索引 必須填寫 READER_ID 文本 30 有(無重復) 是 BOOK_ID1 文本 30 是 BOOK_ID2 文本 30 是 BOOK_ID3 文本 30 是 BORROW_DATE1 日期 是 BORROW_DATE2 日期 是 BORROW_DATE3 日期 是 CLERK_NAME 文本 30 是 字段名稱 字段類型 字段大小 索引 必須填寫