內容介紹 | |
![](http://img3m3.ddimg.cn/61/19/26917963-1_u_3.jpg)
開本:16開 紙張:膠版紙 包裝:平裝-膠訂 是否套裝:否 國際標準書號ISBN:9787121295430 叢書名:國外計算機科學教材繫列 作者:(美) 出版社:電子工業出版社 出版時間:2019年03月 
" 編輯推薦 *針對重要問題進行深入分析 *全書給出了100多個示例和大量的練習 *英文敘述簡潔、易懂 內容簡介 David I. Schneider的Visual Basic教材自出版以來,深受讀者歡迎,第十版對前幾版的內容進行了全面的修訂與更新。本書不是粗略地論及眾多主題,而是針對重要問題進行深入分析。全書共10章,主要內容包括:Visual Basic簡介、控件與事件,變量、輸入和輸出,分支結構,通用過程,循環結構,數組,其他控件和對像,面向對像編程,數據庫,以及文本文件。全書給出了100多個示例和大量的習題,每章後面還提供了實踐性很強的程序設計項目,幫助讀者掌握所學知識。 作者簡介 David I. Schneider:在馬裡蘭大學從事計算機專業的教學近40年。他已編寫了28本圖書,多半是關於計算機程序設計方面的,並開發了很多軟件包。他於1962年在MIT的林肯實驗室就開始了計算機程序設計工作。Schneider在奧伯林學院獲得學士學位,在MIT獲得數學博士學位。 羅凌,重慶師範大學計算機與信息科學學院副教授,主要研究方向為編程語言、軟件工程,並出版了多部教材和譯著。 目錄 Contents
Chapter 1 Visual Basic, Controls, and Events1 1.1 An Introduction to Visual Basic 20151 1.2 Visual Basic Controls3 1.3 Visual Basic Events21 Chapter 2 Variables, Input, and Output36 2.1 Numbers36 2.2 Strings54 2.3 Input and Output74 Chapter 3 Decisions93 3.1 Relational and Logical Operators93 3.2 If Blocks101Contents
Chapter 1 Visual Basic, Controls, and Events1 1.1 An Introduction to Visual Basic 20151 1.2 Visual Basic Controls3 1.3 Visual Basic Events21 Chapter 2 Variables, Input, and Output36 2.1 Numbers36 2.2 Strings54 2.3 Input and Output74 Chapter 3 Decisions93 3.1 Relational and Logical Operators93 3.2 If Blocks101 3.3 Select Case Blocks122 3.4 Input via User Selection136 Chapter 4 General Procedures154 4.1 Function Procedures154 4.2 Sub Procedures, Part I170 4.3 Sub Procedures, Part II185 4.4 Program Design196 4.5 A Case Study: Weekly Payroll199 Chapter 5 Repetition212 5.1 Do Loops212 5.2 For . . . Next Loops226 5.3 List Boxes and Loops240 Chapter 6 Arrays256 6.1 Creating and Using Arrays256 6.2 Using LINQ with Arrays282 6.3 Arrays of Structures296 6.4 Two-Dimensional Arrays322 6.5 A Case Study: Analyze a Loan335 Chapter 7 Additional Controls and Objects352 7.1 List Boxes and Combo Boxes352 7.2 Eight Additional Controls and Objects360 7.3 Multiple-Form Programs375 7.4 Graphics387 Chapter 8 Object-Oriented Programming406 8.1 Classes and Objects406 8.2 Working with Objects423 8.3 Inheritance434 Chapter 9 Databases454 9.1 An Introduction to Databases454 9.2 Editing and Designing Databases478 Chapter 10 Text Files488 10.1 Managing Text Files488 10.2 StreamReaders, StreamWriters, and Structured Exception Handling504 10.3 A Case Study: Recording Checks and Deposits522 Appendices…………………………………………………………………………………………………535 Appendix A ANSI Values535 Appendix B How To 537 Appendix C Files and Folders549 Appendix D Visual Basic Debugging Tools550 前言 Preface Visual Basic has been a widely used programming language since its introduction in 1991. Its latest incarnation, Visual Basic 2015, brings continued refinement of the language. Visual Basic programmers are enthusiastically embracing the powerful capabilities of the language. Likewise, students learning their first programming language will find VB the ideal tool to understand the development of computer programs. My objectives when writing this text were as follows: 1. To develop focused chapters. Rather than covering many topics superficially, I concentrate on important subjects and cover them thoroughly. 2. To use examples and exercises with which students can relate, appreciate, and feel comfortable. I frequently use real data. Examples do not have so many embellishments that students are distracted from the programming techniques illustrated.Preface Visual Basic has been a widely used programming language since its introduction in 1991. Its latest incarnation, Visual Basic 2015, brings continued refinement of the language. Visual Basic programmers are enthusiastically embracing the powerful capabilities of the language. Likewise, students learning their first programming language will find VB the ideal tool to understand the development of computer programs. My objectives when writing this text were as follows: 1. To develop focused chapters. Rather than covering many topics superficially, I concentrate on important subjects and cover them thoroughly. 2. To use examples and exercises with which students can relate, appreciate, and feel comfortable. I frequently use real data. Examples do not have so many embellishments that students are distracted from the programming techniques illustrated. 3. To produce compactly written text that students will find both readable and informative. The main points of each topic are discussed first and then the peripheral details are presented as comments. 4. To teach good programming practices that are in step with modern programming methodology. Problem solving techniques and structured programming are discussed early and used throughout the book.The style follows object-oriented programming principles. 5. To provide insights into the major applications of computers. What’s New in the Tenth Edition Among the changes in this edition, the following are the most significant. 1. Visual Basic Upgraded The version of Visual Basic has been upgraded from Visual Basic 2012 to Visual Basic 2015, and relevant new features of Visual Basic 2015 have been addressed. 2. Additional Exercises Sixty new exercises have been added, most of which are application exercises. 3. Updated Data The real-world data appearing in exercises, examples, and data files has been updated. 4. Decimal Data Type The Decimal data type has been introduced and used in all examples and exercises dealing with financial data. 5. Short-Circuit Evaluation AndAlso and OrElse are introduced for the evaluation of logical operators. 6. Windows 10 The screen captures have been updated from Windows 8 to Windows 10 captures. 7. New Statements and Methods The Exit Sub and Exit Function statements and the string methods Remove and Replace are discussed.
Unique and Distinguishing Features Exercises for Most Sections. Each section that teaches programming has an exercise set. The exercises both reinforce the understanding of the key ideas of the section and challenge the student to explore applications. Most of the exercise sets require the student to trace programs, find errors, and write programs. The answers to all the odd-numbered exercises in Chapters 2 through 7 and the short-answer odd-numbered exercises from Chapters 8, 9, 10, and 11 are given at the end of the text. A screen capture accompanies most programming answers. Practice Problems. Practice Problems are carefully selected exercises located at the end of a section, just before the exercise set. Complete solutions are given following the exercise set. The practice problems often focus on points that are potentially confusing or are best appreciated after the student has thought about them. The reader should seriously attempt the practice problems and study their solutions before moving on to the exercises. Programming Projects. Beginning with Chapter 3, every chapter contains programming projects. The programming projects not only reflect the variety of ways that computers are used in the business community, but also present some games and general-interest topics. The large number and range of difficulty of the programming projects provide the flexibility to adapt the course to the interests and abilities of the students. Some programming projects in later chapters can be assigned as end-of-thesemester projects. Comments. Extensions and fine points of new topics are deferred to the “Comments” portion at the end of each section so that they will not interfere with the flow of the presentation. Captions. Every example | | |