【正文】
世界所有語言文字的編碼方案。學(xué)習(xí)如何利用網(wǎng)絡(luò)尋找解決問題的方法,這種方法在今后的工作和學(xué)習(xí)生活中能讓事情變得事半功倍。 [5] 鄭宇軍 .C 程序設(shè)計教程 [M].北京 : 清華大學(xué)出版社 , 2021。 ( 2)學(xué)校可以采用影印、縮印或其他復(fù)制方式保存學(xué)位論文。 for is not he a benefactor who reduces the inequalitiesand inmensurabilities of goods to equality and mon measure?And this is what the power of money acplishes, and the merchant maybe said to be appointed for this purpose. The hireling and thetavernkeeper, and many other occupations, some of them more andothers less seemly alike have this object。 and in the third place, they must devise some way wherebythe followers of these occupations themselves will not readily fallinto habits of unbridled shamelessness and meanness. After this preface let our law run as follows, and may fortunefavour us:No landowner among the Mages, w hose city the God isrestoring and resettlingno one, that is, of the 5040 families,shall bee a retail trader either voluntarily or involuntarily。 one of whom corruptsthe soul of man with luxury, while the other drives him by pain intoutter shamelessne ss. What remedy can a city of sense find against thisdisease? In the first place, they must have as few retail traders aspossible。 and the herald shall proclaim in the agora theoffence for which he is going to be beaten. The warden of the agoraand the guardians of the law shall obtain information from experiencedpersons about the rogueries and adulterations of the sellers, andshall write up what the seller ought and ought not to do in each case。除非另有說明,本文的工作是原始性工作。 [3] 單銀 根 ,黎連業(yè) .C語言及程序設(shè)計 [M].北京:北京希望電子出版社, 2021。以前在課堂上學(xué)習(xí)的理論知識派上了用場,在程序的實際設(shè)計和實現(xiàn)過程中,逐步地將一些理論知識應(yīng)用到開發(fā)中來,比如函數(shù)的調(diào)用、類與對象、方法的重載和引用等,并簡單接觸到了數(shù)據(jù)庫的設(shè)計與操作。 字符必須編碼后才能被計算機處理。 系統(tǒng)的安全性測試 密碼的安全性 該系統(tǒng)為多用戶系統(tǒng),所有用戶的 登錄 密碼都保存在數(shù)據(jù)庫中, 以供用戶 登錄 時的密碼比較。當(dāng)系統(tǒng)時間到達該日志的提醒時間時,系統(tǒng)能正確發(fā)出提示信息,如圖 55 所示,時 間也非常準(zhǔn)確。經(jīng)檢查,原來是設(shè)計當(dāng)用戶點擊 DataGridView 某行時,會將該行的信息顯示到下邊 的其他控件中,如 Label、 Combox 等。 圖 52 未 登錄 用戶不能訪問日志模塊 該系統(tǒng)采用多用戶模式,并對各用戶的訪問權(quán)限進行了設(shè)置,未 登錄 用戶只能訪問 登錄 模塊、注冊模塊以及日歷主模塊。 測試結(jié)果 由于條件所限,本測試僅對該系統(tǒng)進行功能測試。,+month+,+day+)。并根據(jù)用戶需要進行節(jié)假日信息的添加和刪除。 //當(dāng)點擊 “ 刪除日志 ” 按鈕后的事件處理代碼 private void btnDeleteMsg_Click(object sender, EventArgs e) { //設(shè)置數(shù)據(jù)庫操作語句 sql string sql = delete from MsgInfo Where MsgID=39。 if (當(dāng)前日志 ID 為空 ) { (請先選擇您要刪 除的日志! )。 } catch { 處理異常 。并根據(jù)用戶需要進行添加和刪除日志信息。 顯示窗體的左邊框 = 屏幕分辨率寬度 – 顯示窗體的寬度 + 5。當(dāng)用戶點擊 “ 系統(tǒng)退出 ”按鈕時,退出桌日歷系統(tǒng),關(guān)閉所有窗體并釋放占有資源。 } } 日歷主模塊 功能說明:顯示每一年的日歷,顯示當(dāng)前系統(tǒng)時間,并根據(jù)數(shù)據(jù)庫中的節(jié)假日設(shè)置顯示選中日期的節(jié)日信息,是連接其他系統(tǒng)模塊的入口。amp。 i++) { // 將得到的字符串使用十六進制類型格式。 用戶刪除只有管理員可以訪問,根據(jù)選中的用戶 UserNumber 刪除用戶信息,并將數(shù)據(jù)庫中 MsgInfo 表、 UserInfo 表和 UserLogin 表中該用戶的信息全部刪除。注冊界面將從數(shù)據(jù)庫中讀取出的所有用戶信息顯示出來。 } else if(密碼長度 = 0) { (密碼不能為空,請重新正確的輸入您的 登錄 密碼! )。該表分為 4 個字段,其中 JID 作為該表的主鍵,各字段的屬性和作 用 如表 44 表 44:節(jié)假日信息表 字段名 字段類型 是否主鍵 說明 JID int 是 唯一標(biāo)識的節(jié)假日編號 JName varchar 否 定義的節(jié)假日名稱 JDateTimeM int 否 定義節(jié)假日的月份 JDateTimeD int 否 定義節(jié)假日的日期 各表之間的關(guān)系圖 該關(guān)系圖是由 SQL 數(shù)據(jù)庫的 “ 新建關(guān)系圖向?qū)?” 自動生成。 4 詳細設(shè)計與實現(xiàn) 系統(tǒng)功能設(shè)計 該桌面日歷系統(tǒng)是基于 C/S 結(jié)構(gòu)的應(yīng)用程序系統(tǒng),由 C+SQL 實現(xiàn)。 管理員 管 理員除了可以實現(xiàn) 登錄 用戶的所有功能外,還有更高的權(quán)限,可以對其他用戶信息進行修改和刪除。 功能需求 系統(tǒng)功能模塊主要包括以下幾個方面: 1,用戶注冊模塊; 2, 登錄 模塊; 3,日志提 醒模塊; 4,節(jié)假日模塊; 5,日歷主模塊; 6,用戶信息、節(jié)假日信息和日志信息都保存在數(shù)據(jù)庫模塊中 .以下按照不同的用戶對具體功能進行描述: 未 登錄 用戶 未 登錄 用戶運行該系統(tǒng)后進入日歷主界面,可以查看日歷信息,可以查看當(dāng)前的系統(tǒng)時間,當(dāng)點擊日歷上某一天時可以查看該天是否是已設(shè)置的節(jié)假日。 Microsoft SQL Server 2021 簡介 Microsoft SQL Server 2021 是目前使用最廣泛的數(shù)據(jù)庫,它與 Windows 網(wǎng)絡(luò)操作系統(tǒng)的無縫集成,智能化的內(nèi)容管理,強大的功能,使它得到廣大用戶的喜愛。 SQL Server 2021 SQL 介紹 SQL(Structured Query Language,結(jié)構(gòu)查詢語言 )是一個功能強大的數(shù)據(jù)庫語言。你想放入 C的 任何東西(無論何種語言),只要在 Windows 的 .NET 子系統(tǒng)下建立和包裝 后 都可以使用 Windows 的 運行庫。 C使得 C++程序員可以高效的開發(fā)程序,而絕不損失 C/C++原有的強大的功能。 C/S 模式的優(yōu)點在于:能充分發(fā)揮客戶端 PC 機的處理能力,許多的工作可以交由客戶端處理后再提交給服務(wù)器,所以客戶端的響應(yīng)速度非常快。 4,介紹開發(fā)過程中遇到的各種技術(shù)問題以及解決方案。本文所介紹的桌面日歷系統(tǒng),就是專門為那些常年習(xí)慣于電腦辦公,喜歡對自己的行 程進行系統(tǒng)化管理的人們所開發(fā)的一款桌面軟件。 本設(shè)計按照功能模塊分為用戶 登錄 模塊、用戶 注冊、日歷和時間模塊、節(jié)假日模塊、日程 行程模塊、自動提醒模塊、數(shù)據(jù)庫模塊。而傳統(tǒng)的日程記事本逐漸顯現(xiàn)出在當(dāng)今時代的不足和局限性,比如不便攜帶、不便查閱、不能自動提醒等等,電腦桌面日歷由此孕育而生。 關(guān)鍵詞 : 桌面日歷 ; 日 程 ; 多 用戶 Design and Development of Desktop Calendar System Abstract As PC bees more and more popular since last century, people’s work and life bee more and more convenient, and people rely increasingly on puters. However, the conventional notepad has revealed its deficiencies and limitations, such as inconvenience. And conventional notepad can not alarm automatically also. So, the desktop calendar appears. Because of its convenient date inquiry, individualized schedule management system, accurate schedule alarm system and friendly user interface, desktop calendar is highly estimated among puter workers. Combining the functions of a number of today’s desktop calendars, this design aims to develop an individual desktop calendar and schedule system. It is developed by C and SQL, based on C/S. Its functions include “multiuser login”, “schedule management”, “schedule alarm”, “date inquiry”, “holiday management” and so on. The calendar is convenient for users to check the schedule everyday, and also can protect each user39。 3,人性化的節(jié)假日設(shè)置,可以根據(jù)用戶的喜好來記錄節(jié)假日和一些重要的日子,并在日歷主界面上顯示當(dāng)天的節(jié)假日信息。通過以上分析不難得出結(jié)論,在計算機日益普及的今天,很多傳統(tǒng)的東西必須與電腦相結(jié)合才能進一步發(fā)展。它們?yōu)槌绦騿T提供了十分靈活的操作,不過同時也犧牲了一定的效率。 它不僅能用于 WEB 服務(wù)程序 的 開發(fā),并且還能開發(fā)強大 的 系統(tǒng)級程序。 其次, C 能夠使用的組件 和 庫還只有 .NET 運行庫等很少的選擇,沒有豐富的第三方軟件庫可用,這需要有一個過程,同時各軟件開發(fā)商的支持也很重要。 ANSI(美國國家標(biāo)準(zhǔn)學(xué)會)聲稱, SQL 是關(guān)系數(shù)據(jù)庫管理系統(tǒng)的標(biāo)準(zhǔn)語言。 SQL Server 2021 數(shù)據(jù)庫容量龐大,每個數(shù)據(jù)庫中可創(chuàng)建多達 20 萬個數(shù)據(jù)表,數(shù)據(jù)表中的記錄的行數(shù)只受服務(wù)器硬盤空間的限制。 普通 登錄 用戶 用戶通過 登錄 模塊 登錄 系統(tǒng)后進入日歷主界面,可以查看日歷信息,可以查看當(dāng)前的系統(tǒng)時間,當(dāng)點擊日歷上某一天時可以查看該天是否是已設(shè)置的節(jié)假日,可以訪問節(jié)日設(shè)置模塊并對節(jié)日進行添加和刪除。 性能需求 該系統(tǒng)主要是為了方便用戶進行日程管理,所以要求界面要簡潔,操作要方便。 數(shù)據(jù)庫設(shè)計 根據(jù)需求分析,該系統(tǒng)后臺數(shù)據(jù)庫共分為 4 個表,以下分別給出各個數(shù)據(jù)庫表的簡單描述 。 圖 42 數(shù)據(jù)庫表關(guān)系圖 系統(tǒng)功能實現(xiàn) 根據(jù)系統(tǒng)功能需求分析,系統(tǒng)主要劃分為以下六個模塊: 用戶登錄模塊 功能說明:通過用戶輸入的用戶名、密碼與數(shù)據(jù)庫 UserLogin 表的 UserName字段和 UserPwd 字段相比較判斷其有效性,來實現(xiàn)用戶的 登錄 。 將當(dāng)前 登錄 的用戶名賦值到其他窗體 。不合法的 注冊信息顯示錯誤消息框,并提示重新輸入。 string pwd = 。 } //以下為點擊 “ 添加 ” 按鈕后的事件處理偽代碼,其他如 “ 刪除 ” 和 “ 修改 ” 和此處理流程相似。 2 次輸入的密碼相同 amp。如果為空則提示錯誤信息