|
編輯推薦: |
*针对重要问题进行深入分析
*全书给出了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 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
Appendices535
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.
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. Whats 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
|
|