Programacion en c#

Solo disponible en BuenasTareas
  • Páginas : 860 (214977 palabras )
  • Descarga(s) : 0
  • Publicado : 5 de junio de 2011
Leer documento completo
Vista previa del texto
Contents

Contents Illustrations Preface 1 Introduction to Computers, the Internet, the Web and C#
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 Introduction What Is a Computer? Computer Organization Evolution of Operating Systems Personal Computing, Distributed Computing and Client/Server Computing Machine Languages, Assembly Languages and High-levelLanguages C, C++, Visual Basic .NET and Java™ C# Other High-level Languages Structured Programming Key Software Trend: Object Technology Hardware Trends History of the Internet and World Wide Web World Wide Web Consortium (W3C) Extensible Markup Language (XML) Introduction to Microsoft .NET .NET Framework and the Common Language Runtime Tour of the Book Internet and World Wide Web Resources

viiixix xxxviii 1
2 3 3 4 5 6 7 9 10 10 11 13 13 15 15 16 18 20 29

Contents

IX

2
2.1 2.2 2.3 2.4

Introduction to the Visual Studio .NET IDE
Introduction Visual Studio .NET Integrated Development Environment (IDE) Overview Menu Bar and Toolbar Visual Studio .NET Windows 2.4.1 Solution Explorer 2.4.2 Toolbox 2.4.3 Properties Window Using Help Simple Program: Displaying Text and an Image33
34 34 37 39 39 40 42 42 44

2.5 2.6

3
3.1 3.2 3.3 3.4 3.5 3.6

Introduction to C# Programming
Introduction Simple Program: Printing a Line of Text Another Simple Program: Adding Integers Memory Concepts Arithmetic Decision Making: Equality and Relational Operators

59
60 60 71 75 76 80

4
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 4.12 4.13

Control Structures: Part 1Introduction Algorithms Pseudocode Control Structures if Selection Structure if/else Selection Structure while Repetition Structure Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 3 (Nested ControlStructures) Assignment Operators Increment and Decrement Operators Introduction to Windows Application Programming

94
95 95 96 96 99 100 105 106 109 116 120 121 124

5
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9

Control Structures: Part 2
Introduction Essentials of Counter-Controlled Repetition for Repetition Structure Examples Using the for Structure switch Multiple-Selection Structure do/whileRepetition Structure Statements break and continue Logical and Conditional Operators Structured-Programming Summary

139
140 140 142 146 152 156 158 160 166

X

Contents

6
6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 6.13 6.14 6.15 6.16 6.17

Methods
Introduction Program Modules in C# Math Class Methods Methods Method Definitions Argument Promotion C# Namespaces Value Types andReference Types Passing Arguments: Pass-by-Value vs. Pass-by-Reference Random-Number Generation Example: Game of Chance Duration of Variables Scope Rules Recursion Example Using Recursion: The Fibonacci Series Recursion vs. Iteration Method Overloading

178
179 179 181 181 183 193 195 196 197 200 207 212 212 215 219 222 223

7
7.1 7.2 7.3 7.4

Arrays
Introduction Arrays Declaring andAllocating Arrays Examples Using Arrays 7.4.1 Allocating an Array and Initializing Its Elements 7.4.2 Totaling the Elements of an Array 7.4.3 Using Histograms to Display Array Data Graphically 7.4.4 Using the Elements of an Array as Counters 7.4.5 Using Arrays to Analyze Survey Results Passing Arrays to Methods Passing Arrays by Value and by Reference Sorting Arrays Searching Arrays: Linear Search andBinary Search 7.8.1 Searching an Array with Linear Search 7.8.2 Searching a Sorted Array with Binary Search Multiple-Subscripted Arrays foreach Repetition Structure

236
237 237 239 240 240 242 243 244 247 250 253 257 260 260 261 265 272

7.5 7.6 7.7 7.8

7.9 7.10

8
8.1 8.2 8.3 8.4 8.5 8.6 8.7

Object-Based Programming
Introduction Implementing a Time Abstract Data Type with a Class...
tracking img