亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊(cè)

do-while

  • int main(int argc,char *argv[]) { char ch while(true) { printf("*************************

    int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0

    標(biāo)簽: char int printf while

    上傳時(shí)間: 2017-01-06

    上傳用戶:gonuiln

  • A user-space device driver can do many of the things that kernel drivers can t, such as perform a lo

    A user-space device driver can do many of the things that kernel drivers can t, such as perform a long-running computation, block while waiting for an event, or read files from the file system. Unlike kernel drivers, a user-space device driver can use other device drivers--that is, access the network, talk to a serial port, get interactive input from the user, pop up GUI windows, or read from disks. User-space drivers implemented using FUSD can be much easier to debug it is impossible for them to crash the machine, are easily traceable using tools such as gdb, and can be killed and restarted without rebooting even if they become corrupted. FUSD drivers don t have to be in C--Perl, Python, or any other language that knows how to read from and write to a file descriptor can work with FUSD. User-space drivers can be swapped out, whereas kernel drivers lock physical memory.

    標(biāo)簽: user-space can drivers perform

    上傳時(shí)間: 2014-01-01

    上傳用戶:saharawalker

  • These are precompiled demonstration programs of the Onix toolkit. They do not include the Onix tool

    These are precompiled demonstration programs of the Onix toolkit. They do not include the Onix toolkit but are examples of very simple applications written with the toolkit. They are designed to show both how Onix works and also to show how easy it is to integrate the Onix toolkit into a project. While they show many of the features of the Onix toolkit, they don t show all of them. Please consult our documentation, available at our website, to see many of the features Onix gives you. We have included online the full documentation for the Onix toolkit.

    標(biāo)簽: Onix demonstration precompiled the

    上傳時(shí)間: 2014-11-26

    上傳用戶:xinzhch

  • Switching Regulators for Poets

      The above title is not happenstance and was arrived at afterconsiderable deliberation. As a linear IC manufacturer, it isour goal to encourage users to design and build switchingregulators. A problem is that while everyone agrees thatworking switching regulators are a good thing, everyonealso agrees that they are difficult to get working. Switchingregulators, with their high efficiency and small size, areincreasingly desirable as overall package sizes shrink.Unfortunately, switching regulators are also one of themost difficult linear circuits to design. Mysterious modes,sudden, seemingly inexplicable failures, peculiar regulationcharacteristics and just plain explosions are commonoccurrences. Diodes conduct the wrong way. Things gethot that shouldn’t. Capacitors act like resistors, fusesdon’t blow and transistors do. The output is at ground, andthe ground terminal shows volts of noise.

    標(biāo)簽: Regulators Switching Poets for

    上傳時(shí)間: 2013-12-19

    上傳用戶:奇奇奔奔

  • c#入門經(jīng)典第4版全書pdf

    《C#入門經(jīng)典(第4版)》通過C#可以很容易地學(xué)習(xí).NET Framework 3.5的強(qiáng)大功能,所以C#是開始您編程生涯的絕佳方式?!禖#入門經(jīng)典(第4版)》全面闡述了C#編程的所有方面,包括C#語言本身、Windows編程、Web編程及數(shù)據(jù)源的使用等內(nèi)容。學(xué)習(xí)了新的編程技巧后,《C#入門經(jīng)典(第4版)》介紹了如何高效地部署應(yīng)用程序和服務(wù),論述了許多高級(jí)技術(shù),如圖形化編程。另外,還探討了如何使用Visual C# Express 2008、Visual Web Developer Express 2008和Visual Studio 2008的功能。所有這些內(nèi)容都已更新,以反映.NET Framework 3.5和Visual Studio 2008的變化。各章的樣例代碼和示例還可以用于創(chuàng)建強(qiáng)大且安全的應(yīng)用程序。 c#入門經(jīng)典第4版目錄   第Ⅰ部分 C# 語 言   第1章 C#簡(jiǎn)介 3   1.1 什么是.NET Framework 3   1.1.1 NET Framework的內(nèi)容 4   1.1.2 用.NET Framework編寫應(yīng)用程序 4   1.2 什么是C# 7   1.2.1 用C#能編寫什么樣的應(yīng)用程序 7   1.2.2 本書中的C# 8   1.3 Visual Studio 2008 8   1.3.1 Visual Studio 2008 Express 產(chǎn)品 9   1.3.2 解決方案 9   1.4 小結(jié) 9   第2章 編寫C#程序 10   2.1 開發(fā)環(huán)境 10   2.1.1 Visual Studio 2008 11   2.1.2 Visual C# 2008 ExpressEdition 13   2.2 控制臺(tái)應(yīng)用程序 13   2.2.1 Solution Explorer 16   2.2.2 Properties窗口 17   2.2.3 Error List窗口 17   2.3 Windows Forms應(yīng)用程序 18   2.4 小結(jié) 22   第3章 變量和表達(dá)式 23   3.1 C#的基本語法 23   3.2 C#控制臺(tái)應(yīng)用程序的基本結(jié)構(gòu) 25   3.3 變量 27   3.3.1 簡(jiǎn)單類型 27   3.3.2 變量的命名 31   3.3.3 字面值 32   3.3.4 變量的聲明和賦值 33   3.4 表達(dá)式 34   3.4.1 數(shù)學(xué)運(yùn)算符 34   3.4.2 賦值運(yùn)算符 38   3.4.3 運(yùn)算符的優(yōu)先級(jí) 39   3.4.4 名稱空間 39   3.5 小結(jié) 42   3.6 練習(xí) 43   第4章 流程控制 44   4.1 布爾邏輯 44   4.1.1 位運(yùn)算符 46   4.1.2 布爾賦值運(yùn)算符 50   4.1.3 運(yùn)算符的優(yōu)先級(jí)更新 51   4.2 goto語句 52   4.3 分支 53   4.3.1 三元運(yùn)算符 53   4.3.2 if語句 54   4.3.3 switch語句 57   4.4 循環(huán) 60   4.4.1 do循環(huán) 61   4.4.2 while循環(huán) 63   4.4.3 for循環(huán) 65   4.4.4 循環(huán)的中斷 69   4.4.5 無限循環(huán) 70   4.5 小結(jié) 70   4.6 練習(xí) 71   第5章 變量的更多內(nèi)容 72   5.1 類型轉(zhuǎn)換 72   5.1.1 隱式轉(zhuǎn)換 72   5.1.2 顯式轉(zhuǎn)換 74   5.1.3 使用Convert命令進(jìn)行 顯式轉(zhuǎn)換 76   5.2 復(fù)雜的變量類型 79   5.2.1 枚舉 79   5.2.2 結(jié)構(gòu) 83   5.2.3 數(shù)組 86   5.3 字符串的處理 91   5.4 小結(jié) 95   5.5 練習(xí) 96   第6章 函數(shù) 97   6.1 定義和使用函數(shù) 98   6.1.1 返回值 99   6.1.2 參數(shù) 101   6.2 變量的作用域 107   6.2.1 其他結(jié)構(gòu)中變量的作用域 110   6.2.2 參數(shù)和返回值與全局?jǐn)?shù)據(jù) 111   6.3 Main()函數(shù) 113   6.4 結(jié)構(gòu)函數(shù) 114   6.5 函數(shù)的重載 115   6.6 委托 117   6.7 小結(jié) 119   6.8 練習(xí) 120   第7章 調(diào)試和錯(cuò)誤處理 121   7.1 VS和VCE中的調(diào)試 121   7.1.1 非中斷(正常)模式下的調(diào)試 122   7.1.2 中斷模式下的調(diào)試 131   7.2 錯(cuò)誤處理 139   7.2.1 try...catch...finally 140   7.2.2 列出和配置異常 144   7.2.3 異常處理的注意事項(xiàng) 145   7.3 小結(jié) 146   7.4 練習(xí) 146   第8章 面向?qū)ο缶幊毯?jiǎn)介 147   8.1 什么是面向?qū)ο缶幊?147   8.1.1 什么是對(duì)象 148   8.1.2 所有的東西都是對(duì)象 151   8.1.3 對(duì)象的生命周期 151   8.1.4 靜態(tài)和實(shí)例類成員 152   8.2 OOP技術(shù) 153   8.2.1 接口 153   8.2.2 繼承 155   8.2.3 多態(tài)性 156   8.2.4 對(duì)象之間的關(guān)系 157   8.2.5 運(yùn)算符重載 159   8.2.6 事件 159   8.2.7 引用類型和值類型 160   8.3 Windows應(yīng)用程序中的OOP 160   8.4 小結(jié) 162   8.5 練習(xí) 163   第9章 定義類 164   9.1 C#中的類定義 164   9.2 System.Object 169   9.3 構(gòu)造函數(shù)和析構(gòu)函數(shù) 170   9.4 VS和VCE中的OOP工具 174   9.4.1 Class View窗口 174   9.4.2 對(duì)象瀏覽器 176   9.4.3 添加類 177   9.4.4 類圖 177   9.5 類庫(kù)項(xiàng)目 179   9.6 接口和抽象類 182   9.7 結(jié)構(gòu)類型 184   9.8 小結(jié) 186   9.9 練習(xí) 186   第10章 定義類成員 187   10.1 成員定義 187   10.1.1 定義字段 187   10.1.2 定義方法 188   10.1.3 定義屬性 189   10.1.4 在類圖中添加成員 194   10.1.5 重制成員 196   10.1.6 自動(dòng)屬性 197   10.2 類成員的其他議題 197   10.2.1 隱藏基類方法 198   10.2.2 調(diào)用重寫或隱藏的基類方法 199   10.2.3 嵌套的類型定義 200   10.3 接口的實(shí)現(xiàn) 201   10.4 部分類定義 204   10.5 部分方法定義 206   10.6 示例應(yīng)用程序 207   10.6.1 規(guī)劃應(yīng)用程序 207   10.6.2 編寫類庫(kù) 208   10.6.3 類庫(kù)的客戶應(yīng)用程序 214   10.7 小結(jié) 215   10.8 練習(xí) 216   第11章 集合、比較和轉(zhuǎn)換 217   11.1 集合 217   11.1.1 使用集合 218   11.1.2 定義集合 224   11.1.3 索引符 225   11.1.4 給CardLib添加Cards集合 227   11.1.5 關(guān)鍵字值集合和IDictionary 229   11.1.6 迭代器 231   11.1.7 深度復(fù)制 236   11.1.8 給CardLib添加深度復(fù)制 238   11.2 比較 239   11.2.1 類型比較 240   11.2.2 值比較 244   11.3 轉(zhuǎn)換 259   11.3.1 重載轉(zhuǎn)換運(yùn)算符 259   11.3.2 as運(yùn)算符 260   11.4 小結(jié) 261   11.5 練習(xí) 262   第12章 泛型 263   12.1 泛型的概念 263   12.2 使用泛型 264   12.2.1 可空類型 264   12.2.2 System.Collections.Generic 名稱空間 271   12.3 定義泛型 279   12.3.1 定義泛型類 280   12.3.2 定義泛型接口 291   12.3.3 定義泛型方法 291   12.3.4 定義泛型委托 293   12.4 小結(jié) 293   12.5 練習(xí) 293   第13章 其他OOP技術(shù) 295   13.1 ::運(yùn)算符和全局名稱空間   13.2 定制異常 296   13.2.1 異?;?297   13.2.2 給CardLib添加定制異常 297   13.3 事件 298   13.3.1 什么是事件 298   13.3.2 使用事件 300   13.3.3 定義事件 302   13.4 擴(kuò)展和使用CardLib 309   13.5 小結(jié) 317   13.6 練習(xí) 317   第14章 C# 3.0語言的改進(jìn) 318   14.1 初始化器 318   14.1.1 對(duì)象初始化器 319   14.1.2 集合初始化器 320   14.2 類型推斷 323   14.3 匿名類型 325   14.4 擴(kuò)展方法 328   14.5 ?表達(dá)式 333   14.5.1 復(fù)習(xí)匿名方法 333   14.5.2 把?表達(dá)式用于匿名方法 334   14.5.3 ?表達(dá)式的參數(shù) 337   14.5.4 ?表達(dá)式的語句體 337   14.5.5 ?表達(dá)式用作委托和表達(dá)式樹 338   14.5.6 ?表達(dá)式和集合 339   14.6 小結(jié) 342   14.7 練習(xí) 342   第Ⅱ部分 Windows 編 程   第15章 Windows編程基礎(chǔ) 347   15.1 控件 347   15.1.1 屬性 348   15.1.2 控件的定位、停靠和對(duì)齊 349   15.1.3 事件 350   15.2 Button控件 352   15.2.1 Button控件的屬性 352   15.2.2 Button控件的事件 353   15.3 Label和LinkLabel控件 354   15.4 TextBox控件 355   15.4.1 TextBox控件的屬性 355   15.4.2 TextBox控件的事件 356   15.5 RadioButton和CheckBox控件 363   15.5.1 RadioButton控件的屬性 364   15.5.2 RadioButton控件的事件 364   15.5.3 CheckBox控件的屬性 364   15.5.4 CheckBox控件的事件 364   15.5.5 GroupBox控件 365   15.6 RichTextBox控件 368   15.6.1 RichTextBox控件的屬性 368   15.6.2 RichTextBox控件的事件 369   15.7 ListBox和CheckedListBox控件 374   15.7.1 ListBox控件的屬性 375   15.7.2 ListBox控件的方法 376   15.7.3 ListBox控件的事件 376   15.8 ListView控件 378   15.8.1 ListView控件的屬性 378   15.8.2 ListView控件的方法 380   15.8.3 ListView控件的事件 381   15.8.4 ListViewItem 381   15.8.5 ColumnHeader 381   15.8.6 ImageList控件 381   15.9 TabControl控件 388   15.9.1 TabControl控件的屬性 389   15.9.2 使用TabControl控件 389   15.10 小結(jié) 392   15.11 練習(xí) 392   第16章 Windows Forms的高級(jí)功能 393   16.1 菜單和工具欄 393   16.1.1 兩個(gè)實(shí)質(zhì)一樣的控件 393   16.1.2 使用MenuStrip控件 394   16.1.3 手工創(chuàng)建菜單 394   16.1.4 ToolStripMenuItem控件的其他屬性 397   16.1.5 給菜單添加功能 397   16.2 工具欄 399   16.2.1 ToolStrip控件的屬性 399   16.2.2 ToolStrip的項(xiàng) 400   16.2.3 StatusStrip控件 405   16.2.4 StatusStripStatusLabel的屬性 405   16.3 SDI和MDI應(yīng)用程序 407   16.4 創(chuàng)建控件 415   16.4.1 LabelTextbox控件 417   16.4.2 調(diào)試用戶控件 420   16.4.3 擴(kuò)展LabelTextbox控件 421   16.5 小結(jié) 424   16.6 練習(xí) 424   第17章 使用通用對(duì)話框 425   17.1 通用對(duì)話框 425   17.2 如何使用對(duì)話框 426   17.3 文件對(duì)話框 427   17.3.1 OpenFileDialog 427   17.3.2 SaveFileDialog 438   17.4 打印 442   17.4.1 打印結(jié)構(gòu) 442   17.4.2 打印多個(gè)頁面 447   17.4.3 PageSetupDialog 449   17.4.4 PrintDialog 451   17.5 打印預(yù)覽 455   17.5.1 PrintPreviewDialog 455   17.5.2 PrintPreviewControl 456   17.6 FontDialog和ColorDialog 457   17.6.1 FontDialog 457   17.6.2 ColorDialog 459   17.6.3 FolderBrowserDialog 460   17.7 小結(jié) 461   17.8 練習(xí) 461   第18章 部署Windows應(yīng)用程序 463   18.1 部署概述 463   18.2 ClickOnce部署 464   18.3 Visual Studio安裝和部署項(xiàng)目類型 473   18.4 Microsoft Windows安裝程序結(jié)構(gòu) 474   18.4.1 Windows Installer術(shù)語 474   18.4.2 Windows Installer的優(yōu)點(diǎn) 476   18.5 為SimpleEditor創(chuàng)建安裝軟件包 476   18.5.1 規(guī)劃安裝內(nèi)容 476   18.5.2 創(chuàng)建項(xiàng)目 477   18.5.3 項(xiàng)目屬性 478   18.5.4 安裝編輯器 480   18.5.5 File System編輯器 481   18.5.6 File Types編輯器 483   18.5.7 Launch Condition編輯器 485   18.5.8 User Interface編輯器 485   18.6 構(gòu)建項(xiàng)目 488   18.7 安裝 489   18.7.1 Welcome 489   18.7.2 Read Me 489   18.7.3 License Agreement 490   18.7.4 Optional Files 490   18.7.5 選擇安裝文件夾 491   18.7.6 確認(rèn)安裝 492   18.7.7 進(jìn)度 492   18.7.8 結(jié)束安裝 493   18.7.9 運(yùn)行應(yīng)用程序 493   18.7.10 卸載 493   18.8 小結(jié) 493   18.9 練習(xí) 494   第Ⅲ部分 Web 編 程   第19章 Web編程基礎(chǔ) 497   19.1 概述 497   19.2 ASP .NET運(yùn)行庫(kù) 498   19.3 創(chuàng)建簡(jiǎn)單的Web頁面 498   19.4 服務(wù)器控件 504   19.5 事件處理程序 505   19.6 輸入的有效性驗(yàn)證 509   19.7 狀態(tài)管理 512   19.7.1 客戶端的狀態(tài)管理 513   19.7.2 服務(wù)器端的狀態(tài)管理 515   19.8 身份驗(yàn)證和授權(quán) 517   19.8.1 身份驗(yàn)證的配置 518   19.8.2 使用安全控件 522   19.9 讀寫SQL Server數(shù)據(jù)庫(kù) 524   19.10 小結(jié) 530   19.11 練習(xí) 531   第20章 Web高級(jí)編程 532   20.1 母版頁 532   20.2 站點(diǎn)導(dǎo)航 537   20.3 用戶控件 539   20.4 個(gè)性化配置 541   20.4.1 個(gè)性化配置組 543   20.4.2 組件的個(gè)性化配置 543   20.4.3 定制數(shù)據(jù)類型中的個(gè)性化配置 543   20.4.4匿名用戶的個(gè)性化配置 544   20.5 Web Parts 545   20.5.1 WebPartManager控件 546   20.5.2 WebPartZone控件 546   20.5.3 EditorZone控件 548   20.5.4 CatalogZone控件 550   20.5.5 ConnectionsZone控件 551   20.6 JavaScript 554   20.6.1 Script元素 555   20.6.2 變量的聲明 555   20.6.3 定義函數(shù) 555   20.6.4 語句 556   20.6.5 對(duì)象 556   20.7 小結(jié) 560   20.8 練習(xí) 560   第21章 Web服務(wù) 561   21.1 Web服務(wù)推出之前 561   21.1.1 遠(yuǎn)程過程調(diào)用(RPC) 562   21.1.2 SOAP 563   21.2 使用Web服務(wù)的場(chǎng)合 563   21.2.1 賓館旅行社代理應(yīng)用程序 564   21.2.2 圖書發(fā)布應(yīng)用程序 564   21.2.3 客戶應(yīng)用程序的類型 564   21.2.4 應(yīng)用程序的體系結(jié)構(gòu) 564   21.3 Web服務(wù)的體系結(jié)構(gòu) 565   21.3.1 可以調(diào)用的方法 565   21.3.2 調(diào)用方法 566   21.3.3 SOAP和防火墻 567   21.3.4 WS-I基本個(gè)性化配置 568   21.4 Web服務(wù)和.NET Framework 568   21.4.1 創(chuàng)建Web服務(wù) 568   21.4.2 客戶程序 570   21.5 創(chuàng)建簡(jiǎn)單的ASP .NET Web服務(wù) 571   21.6 測(cè)試Web服務(wù) 572   21.7 執(zhí)行Windows客戶程序 574   21.8 異步調(diào)用服務(wù) 577   21.9 執(zhí)行ASP .NET客戶程序 580   21.10 傳送數(shù)據(jù) 581   21.11 小結(jié) 584   21.12 練習(xí) 584   第22章 Ajax編程 586   22.1 Ajax概述 586   22.2 UpdatePanel控件 587   22.3 Timer控件 591   22.4 UpdateProgress控件 592   22.5 Web服務(wù) 594   22.6 擴(kuò)展控件 598   22.7 小結(jié) 600   22.8 練習(xí) 600   第23章 部署Web應(yīng)用程序 601   23.1 Internet Information Services 601   23.2 IIS配置 602   23.3 復(fù)制Web站點(diǎn) 604   23.4 發(fā)布Web站點(diǎn) 606   23.5 Windows安裝程序 607   23.5.1 創(chuàng)建安裝程序 607   23.5.2 安裝Web 應(yīng)用程序 609   23.6 小結(jié) 610   23.7 練習(xí) 610   第Ⅳ部分 數(shù) 據(jù) 訪 問   第24章 文件系統(tǒng)數(shù)據(jù) 613   24.1 流 613   24.2 用于輸入和輸出的類 614   24.2.1 File類和Directory類 615   24.2.2 FileInfo類 616   24.2.3 DirectoryInfo類 617   24.2.4 路徑名和相對(duì)路徑 618   24.2.5 FileStream對(duì)象 618   24.2.6 StreamWriter對(duì)象 624   24.2.7 StreamReader對(duì)象 626   24.2.8 讀寫壓縮文件 632   24.3 序列化對(duì)象 635   24.4 監(jiān)控文件結(jié)構(gòu) 639   24.5 小結(jié) 645   24.6 練習(xí) 646   第25章 XML 647   25.1 XML文檔 647   25.1.1 XML元素 647   25.1.2 屬性 648   25.1.3 XML聲明 649   25.1.4 XML文檔的結(jié)構(gòu) 649   25.1.5 XML名稱空間 650   25.1.6 格式良好并有效的XML 651   25.1.7 驗(yàn)證XML文檔 651   25.2 在應(yīng)用程序中使用XML 654   25.2.1 XML文檔對(duì)象模型 655   25.2.2 選擇節(jié)點(diǎn) 663   25.3 小結(jié) 670   25.4 練習(xí) 671   第26章 LINQ簡(jiǎn)介 672   26.1 LINQ的變體 673   26.2 第一個(gè)LINQ查詢 673   26.2.1 用var關(guān)鍵字聲明結(jié)果變量 675   26.2.2 指定數(shù)據(jù)源:from子句 675   26.2.3 指定條件:where子句 675   26.2.4 指定元素:select子句 676   26.2.5 完成:使用foreach循環(huán) 676   26.2.6 延遲執(zhí)行的查詢 676   26.3使用LINQ方法語法和?表達(dá)式 676   26.3.1 LINQ擴(kuò)展方法 676   26.3.2 查詢語法和方法語法 677   26.3.3 ?表達(dá)式 677   26.4 排序查詢結(jié)果 679   26.5 orderby子句 680   26.6 用方法語法排序 681   26.7 查詢大型數(shù)據(jù)集 682   26.8 合計(jì)運(yùn)算符 685   26.9 查詢復(fù)雜的對(duì)象 688   26.10 投射:在查詢中創(chuàng)建新對(duì)象 691   26.11 投射:方法語法 693   26.12 單值選擇查詢 693   26.13 Any和All 694   26.14 多級(jí)排序 696   26.15 多級(jí)排序方法語法:ThenBy 698   26.16 組合查詢 698   26.17 Take和Skip 700   26.18 First和FirstOrDefault 702   26.19 集運(yùn)算符 703   26.20 Join查詢 706   26.21 資源和進(jìn)一步閱讀 707   26.22 小結(jié) 707   26.23 練習(xí) 707   第27章 LINQ to SQL 709   27.1 對(duì)象相關(guān)映射 709   27.2 安裝SQL Server和Northwind示例數(shù)據(jù) 710   27.2.1 安裝SQL Server Express2005 710   27.2.2 安裝Northwind示例數(shù)據(jù)庫(kù) 711   27.3 第一個(gè)LINQ to SQL查詢 712   27.4 瀏覽LINQ to SQL關(guān)系 717   27.5 進(jìn)一步探討LINQ to SQL 720   27.6 LINQ to SQL中的組合、排序和其他高級(jí)查詢 723   27.7 顯示生成的SQL 725   27.8 用LINQ to SQL綁定數(shù)據(jù) 729   27.9 用LINQ to SQL更新綁定數(shù)據(jù) 733   27.10 小結(jié) 734   27.11 練習(xí) 735   第28章 ADO .NET和LINQ over DataSet 736   28.1 ADO .NET概述 736   28.1.1 ADO .NET名稱的來源 737   28.1.2 ADO .NET的設(shè)計(jì)目標(biāo) 738   28.2 ADO .NET類和對(duì)象概述 739   28.2.1 提供者對(duì)象 739   28.2.2 用戶對(duì)象 740   28.2.3 使用System.Data名稱空間 741   28.3 用DataReader讀取數(shù)據(jù) 742   28.4 用DataSet讀取數(shù)據(jù) 749   28.4.1 用數(shù)據(jù)填充DataSet 749   28.4.2 訪問DataSet中的表、行和列 749   28.5 更新數(shù)據(jù)庫(kù) 752   28.5.1 給數(shù)據(jù)庫(kù)添加行 755   28.5.2 刪除行 761   28.6 在DataSet中訪問多個(gè)表 762   28.6.1 ADO .NET中的關(guān)系 762   28.6.2 用關(guān)系導(dǎo)航 763   28.7 XML和ADO .NET 770   28.8 ADO .NET中的SQL支持 773   28.8.1 DataAdapter對(duì)象中的 SQL命令 773   28.8.2 直接執(zhí)行SQL命令 776   28.8.3 調(diào)用SQL存儲(chǔ)過程 778   28.9 使用LINQ over DataSet和ADO .NET 780   28.10 小結(jié) 784   28.11 練習(xí) 784   第29章 LINQ to XML 785   29.1 LINQ to XML函數(shù)構(gòu)造方法 785   29.2 保存和加載XML文檔 789   29.2.1 從字符串中加載XML 791   29.2.2 已保存的XML文檔內(nèi)容 792   29.3 處理XML片段 792   29.4 通過LINQ to XML生成 XML 794   29.5 查詢XML文檔 798   29.6 小結(jié) 804   29.7 練習(xí) 804   第Ⅴ部分 其 他 技 術(shù)   第30章 屬性 809   30.1 什么是屬性 809   30.2 反射 812   30.3 內(nèi)置屬性 815   30.3.1 System.Diagnostics.ConditionalAttribute 815   30.3.2 System.Obsolete Attribute 817   30.3.3 System.Serializable   Attribute 818   30.3.4 System.Reflection.AssemblyDelaySignAttribute 821   30.4 定制屬性 824   30.4.1 BugFixAttribute 824   30.4.2 System.AttributeUsageAttribute 826   30.5 小結(jié) 830   第31章 XML文檔說明 831   31.1 添加XML文檔說明 831   31.1.1 XML文檔說明的注釋 833   31.1.2 使用類圖添加XML文檔說明 839   31.1.3 生成XML文檔說明文件 842   31.1.4 帶有XML文檔說明的應(yīng)用程序示例 844   31.2 使用XML文檔說明 846   31.2.1 編程處理XML文檔說明 846   31.2.2 用XSLT格式化XML文檔說明 848   31.2.3 文檔說明工具 849   31.3 小結(jié) 850   31.4 練習(xí) 851   第32章 網(wǎng)絡(luò) 852   32.1 聯(lián)網(wǎng)概述 852   32.1.1 名稱的解析 855   32.1.2 統(tǒng)一資源標(biāo)識(shí)符 856   32.1.3 TCP和UDP 857   32.1.4 應(yīng)用協(xié)議 857   32.2 網(wǎng)絡(luò)編程選項(xiàng) 859   32.3 WebClient 859   32.4 WebRequest和WebResponse 861   32.5 TcpListener和TcpClient 868   32.6 小結(jié) 876   32.7 練習(xí) 876   第33章 GDI+簡(jiǎn)介 877   33.1 圖形繪制概述 877   33.1.1 Graphics類 878   33.1.2 對(duì)象的刪除 878   33.1.3 坐標(biāo)系統(tǒng) 879   33.1.4 顏色 884   33.2 使用Pen類繪制線條 885   33.3 使用Brush類繪制圖形 887   33.4 使用Font 類繪制文本 890   33.5 使用圖像進(jìn)行繪制 893   33.5.1 使用紋理畫筆繪圖 895   33.5.2 使用鋼筆繪制圖像 897   33.5.3 雙倍緩沖 898   33.6 GDI+的高級(jí)功能 900   33.6.1 剪切 900   33.6.2 System.Drawing.Drawing2D 901   33.6.3 System.Drawing.Imaging 901   33.7 小結(jié) 901   33.8 練習(xí) 902   第 34 章 Windows Presentation Foundation 903   34.1 WPF的概念 904   34.1.1 WPF給設(shè)計(jì)人員帶來的好處 904   34.1.2 WPF給C#開發(fā)人員帶來的好處 906   34.2 基本W(wǎng)PF應(yīng)用程序的組成 906   34.3 WPF基礎(chǔ) 916   34.3.1 XAML語法 917   34.3.2 桌面和Web應(yīng)用程序 919   34.3.3 Application對(duì)象 920   34.3.4 控件基 920   34.3.5 控件的布局 928   34.3.6 控件的樣式 936   34.3.7 觸發(fā)器 941   34.3.8 動(dòng)畫 942   34.3.9 靜態(tài)和動(dòng)態(tài)資源 944   34.4 用WPF編程 949   34.4.1 WPF用戶控件 950   34.4.2 實(shí)現(xiàn)依賴屬性 950   34.5 小結(jié) 959   34.6 練習(xí) 960   第35 章 Windows Communication Foundation 961   35.1 WCF是什么 961   35.2 WCF概念 962   35.2.1 WCF通信協(xié)議 962   35.2.2 地址、端點(diǎn)和綁定 963   35.2.3 合同 964   35.2.4 消息模式 965   35.2.5 行為 965   35.2.6 主機(jī) 965   35.3 WCF編程 966   35.3.1 定義WCF服務(wù)合同 973   35.3.2 自存儲(chǔ)的WCF服務(wù) 979   35.4 小結(jié) 985   35.5 練習(xí) 986   第36章 Windows Workflow Foundation 987   36.1 活動(dòng) 990   36.1.1 DelayActivity 990   36.1.2 SuspendActivity 991   36.1.3 WhileActivity 992   36.1.4 SequenceActivity 994   36.1.5 定制活動(dòng) 997   36.2 工作流運(yùn)行庫(kù) 1002   36.3 數(shù)據(jù)綁 1007   36.4 小結(jié) 1010 序言

    標(biāo)簽:

    上傳時(shí)間: 2013-11-16

    上傳用戶:xinyuzhiqiwuwu

  • LCD12864顯示漢字和數(shù)字(程序和電路)

    附件為:LCD12864顯示漢字和數(shù)字的程序與電路 /*  自定義延時(shí)子函數(shù) */ void delayms(uchar z) {   int x,y;   for(x=z;x>0;x--)      for(y=110;y>0;y--); } /*      判斷LCD忙信號(hào)狀態(tài) */ void buys() {   int dat;   RW=1;   RS=0;   do     {           P0=0x00;          E=1;    dat=P0;    E=0;    dat=0x80 & dat;   } while(!(dat==0x00)); } /*      LCD寫指令函數(shù) */ void w_com(uchar com) {   //buys();   RW=0;   RS=0;   E=1;   P0=com;   E=0; }  /*      LCD寫數(shù)據(jù)函數(shù) */ void w_date(uchar date) {   //buys();   RW=0;   RS=1;   E=1;   P0=date;   E=0; } /*     LCD選屏函數(shù) */ void select_screen(uchar screen) {     switch(screen)     {         case 0:     //選擇全屏                 CS1=0;        CS2=0;           break;      case 1:     //選擇左屏                 CS1=0;        CS2=1;           break;                          case 2:     //選擇右屏                 CS1=1;        CS2=0;           break;    /*  case 3:     //選擇右屏                 CS1=1;          CS2=1;               break;    */     }           } /*   LCDx向上滾屏顯示 */ void lcd_rol() {     int x;     for(x=0;x<64;x++)        {       select_screen(0);     w_com(0xc0+x);       delayms(500);     } } /*     LCD清屏函數(shù):清屏從第一頁的第一列開始,總共8頁,64列 */ void clear_screen(screen) {   int x,y;   select_screen(screen);     //screen:0-選擇全屏,1-選擇左半屏,2-選擇右半屏   for(x=0xb8;x<0xc0;x++)   //從0xb8-0xbf,共8頁      {    w_com(x);    w_com(0x40);   //列的初始地址是0x40    for(y=0;y<64;y++)       {            w_date(0x00);              }       }    } /*   LCD顯示漢字字庫(kù)函數(shù) */ void lcd_display_hanzi(uchar screen,uchar page,uchar col,uint mun) {  //screen:選擇屏幕參數(shù),page:選擇頁參數(shù)0-3,col:選擇列參數(shù)0-3,mun:顯示第幾個(gè)漢字的參數(shù)       int a;    mun=mun*32;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*16));    for ( a=0;a<16;a++)       {        w_date(hanzi[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*16));    for ( a=0;a<16;a++)       {        w_date(hanzi[mun++]);       } }  /*   LCD顯示字符字庫(kù)函數(shù) */ void lcd_display_zifuk(uchar screen,uchar page,uchar col,uchar mun) {  //screen:選擇屏幕參數(shù),page:選擇頁參數(shù)0-3,col:選擇列參數(shù)0-7,mun:顯示第幾個(gè)漢字的參數(shù)       int a;    mun=mun*16;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(zifu[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(zifu[mun++]);       } } /*   LCD顯示數(shù)字字庫(kù)函數(shù) */ void lcd_display_shuzi(uchar screen,uchar page,uchar col,uchar mun) {  //screen:選擇屏幕參數(shù),page:選擇頁參數(shù)0-3,col:選擇列參數(shù)0-7,mun:顯示第幾個(gè)漢字的參數(shù)       int a;    mun=mun*16;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(shuzi[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(shuzi[mun++]);       } } /*   LCD初始化函數(shù) */ void lcd_init() {   w_com(0x3f);   //LCD開顯示   w_com(0xc0);   //LCD行初始地址,共64行   w_com(0xb8);   //LCD頁初始地址,共8頁   w_com(0x40);   //LCD列初始地址,共64列     } /*   LCD顯示主函數(shù) */ void main() {   //第一行       int x;    lcd_init();     //LCD初始化    clear_screen(0);    //LCD清屏幕    lcd_display_shuzi(1,0,4,5);    //LCD顯示數(shù)字    lcd_display_shuzi(1,0,5,1);    //LCD顯示數(shù)字       lcd_display_hanzi(1,0,3,0);    //LCD顯示漢字    lcd_display_hanzi(2,0,0,1);    //LCD顯示漢字    //LCD字符漢字    lcd_display_hanzi(2,0,1,2);    //LCD顯示漢字   //第二行     lcd_display_zifuk(1,1,2,0);    //LCD顯示字符    lcd_display_zifuk(1,1,3,0);    //LCD顯示字符    lcd_display_zifuk(1,1,4,0);    //LCD顯示字符    lcd_display_zifuk(1,1,5,4);    //LCD顯示字符    lcd_display_shuzi(1,1,6,8);    //LCD顯示字符    lcd_display_shuzi(1,1,7,9);    //LCD顯示字符    lcd_display_shuzi(2,1,0,5);    //LCD顯示字符    lcd_display_shuzi(2,1,1,1);    //LCD顯示字符    lcd_display_zifuk(2,1,2,4);    lcd_display_zifuk(2,1,3,1);    lcd_display_zifuk(2,1,4,2);    lcd_display_zifuk(2,1,5,3);   //第三行    for(x=0;x<4;x++)       {      lcd_display_hanzi(1,2,x,3+x);    //LCD顯示漢字    }      for(x=0;x<4;x++)       {      lcd_display_hanzi(2,2,x,7+x);    //LCD顯示漢字    }   //第四行     for(x=0;x<4;x++)       {      lcd_display_zifuk(1,3,x,5+x);    //LCD顯示漢字    }     lcd_display_shuzi(1,3,4,7);     lcd_display_shuzi(1,3,5,5);     lcd_display_shuzi(1,3,6,5);     lcd_display_zifuk(1,3,7,9);     lcd_display_shuzi(2,3,0,8);     lcd_display_shuzi(2,3,1,9);     lcd_display_shuzi(2,3,2,9);     lcd_display_shuzi(2,3,3,5);     lcd_display_shuzi(2,3,4,6);     lcd_display_shuzi(2,3,5,8);     lcd_display_shuzi(2,3,6,9);     lcd_display_shuzi(2,3,7,2);        while(1);    /* while(1)     {     //  LCD向上滾屏顯示        lcd_rol();     }    */ }

    標(biāo)簽: 12864 LCD 漢字 數(shù)字

    上傳時(shí)間: 2013-11-08

    上傳用戶:aeiouetla

  • Input Signal Rise and Fall Tim

    All inputs of the C16x family have Schmitt-Trigger input characteristics. These Schmitt-Triggers are intended to always provide proper internal low and high levels, even if anundefined voltage level (between TTL-VIL and TTL-VIH) is externally applied to the pin.The hysteresis of these inputs, however, is very small, and can not be properly used in anapplication to suppress signal noise, and to shape slow rising/falling input transitions.Thus, it must be taken care that rising/falling input signals pass the undefined area of theTTL-specification between VIL and VIH with a sufficient rise/fall time, as generally usualand specified for TTL components (e.g. 74LS series: gates 1V/us, clock inputs 20V/us).The effect of the implemented Schmitt-Trigger is that even if the input signal remains inthe undefined area, well defined low/high levels are generated internally. Note that allinput signals are evaluated at specific sample points (depending on the input and theperipheral function connected to it), at that signal transitions are detected if twoconsecutive samples show different levels. Thus, only the current level of an input signalat these sample points is relevant, that means, the necessary rise/fall times of the inputsignal is only dependant on the sample rate, that is the distance in time between twoconsecutive evaluation time points. If an input signal, for instance, is sampled throughsoftware every 10us, it is irrelevant, which input level would be seen between thesamples. Thus, it would be allowable for the signal to take 10us to pass through theundefined area. Due to the sample rate of 10us, it is assured that only one sample canoccur while the signal is within the undefined area, and no incorrect transition will bedetected. For inputs which are connected to a peripheral function, e.g. capture inputs, thesample rate is determined by the clock cycle of the peripheral unit. In the case of theCAPCOM unit this means a sample rate of 400ns @ 20MHz CPU clock. This requiresinput signals to pass through the undefined area within these 400ns in order to avoidmultiple capture events.For input signals, which do not provide the required rise/fall times, external circuitry mustbe used to shape the signal transitions.In the attached diagram, the effect of the sample rate is shown. The numbers 1 to 5 in thediagram represent possible sample points. Waveform a) shows the result if the inputsignal transition time through the undefined TTL-level area is less than the time distancebetween the sample points (sampling at 1, 2, 3, and 4). Waveform b) can be the result ifthe sampling is performed more than once within the undefined area (sampling at 1, 2, 5,3, and 4).Sample points:1. Evaluation of the signal clearly results in a low level2. Either a low or a high level can be sampled here. If low is sampled, no transition willbe detected. If the sample results in a high level, a transition is detected, and anappropriate action (e.g. capture) might take place.3. Evaluation here clearly results in a high level. If the previous sample 2) had alreadydetected a high, there is no change. If the previous sample 2) showed a low, atransition from low to high is detected now.

    標(biāo)簽: Signal Input Fall Rise

    上傳時(shí)間: 2013-10-23

    上傳用戶:copu

  • A windows BMP file is a common image format that Java does not handle. While BMP images are used onl

    A windows BMP file is a common image format that Java does not handle. While BMP images are used only on windows machines, they are reasonably common. Reading these shows how to read complex structures in Java and how to alter they byte order from the big endian order used by Java to the little endian order used by the windows and the intel processor.

    標(biāo)簽: BMP windows common format

    上傳時(shí)間: 2013-12-27

    上傳用戶:gaojiao1999

  • 軟件測(cè)試:一個(gè)編譯器測(cè)試軟件

    軟件測(cè)試:一個(gè)編譯器測(cè)試軟件,支持下列C語言運(yùn)算符:+ - * / % ^(乘方) 負(fù) (int) (double) "字符串" [](數(shù)組) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列關(guān)鍵字:void int double string if else for while do goto break continue return,支持下列數(shù)據(jù)類型:int double string int[] double[] string[],支持下列系統(tǒng)函數(shù):int max(int,int),double max(double,double),int[] newint(int),double[] newdouble(int),string[] newstring(int),void delete(int[]),void delete(double[]),void delete(string[]),支持任意用戶定義函數(shù),支持函數(shù)重載。不支持全局變量。如果發(fā)現(xiàn)錯(cuò)誤,請(qǐng)告訴我

    標(biāo)簽: 軟件測(cè)試 編譯器 測(cè)試軟件

    上傳時(shí)間: 2013-12-15

    上傳用戶:sy_jiadeyi

  • pdnMesh is an automatic mesh generator and solver for Finite Element problems. It will also do post-

    pdnMesh is an automatic mesh generator and solver for Finite Element problems. It will also do post-processing to generate contour plots and Postscript printouts. GUI support using GTK or MFC (Win32) is available. The problem definition can be done in any form and given to pdnMesh as an input data file. Drawing Exchange Format (DXF) files can be directly imported to pdnmesh. The quality and the coarseness of the mesh can be controlled by giving input parameters.

    標(biāo)簽: automatic generator problems pdnMesh

    上傳時(shí)間: 2013-12-19

    上傳用戶:cuibaigao

主站蜘蛛池模板: 池州市| 内丘县| 门源| 上思县| 呼和浩特市| 常山县| 浪卡子县| 邯郸县| 安康市| 云阳县| 资溪县| 望都县| 罗定市| 大同市| 满洲里市| 稻城县| 顺义区| 响水县| 嵊泗县| 平南县| 长泰县| 建宁县| 克什克腾旗| 吴堡县| 台中县| 贵港市| 洛浦县| 镇雄县| 施秉县| 呼玛县| 石台县| 桂阳县| 盘山县| 文山县| 吐鲁番市| 罗甸县| 达州市| 湘潭县| 高唐县| 普格县| 咸丰县|