1. Trang chủ
  2. » Khoa Học Tự Nhiên

(Ebook pdf) programming c deitel c how to program

1.6K 33 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Contents Contents viii Illustrations xix Preface xxxviii 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-level Languages 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 www.elsolucionario.net 3 10 10 11 13 13 15 15 16 18 20 29 Contents IX Introduction to the Visual Studio NET IDE 2.1 2.2 2.3 2.4 2.5 2.6 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 Image Introduction to C# Programming 3.1 3.2 3.3 3.4 3.5 3.6 Introduction Simple Program: Printing a Line of Text Another Simple Program: Adding Integers Memory Concepts Arithmetic Decision Making: Equality and Relational Operators Control Structures: Part 94 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 95 95 96 96 99 100 105 106 4.11 4.12 4.13 Introduction Algorithms Pseudocode Control Structures if Selection Structure if/else Selection Structure while Repetition Structure Formulating Algorithms: Case Study (Counter-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study (Sentinel-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study (Nested Control Structures) Assignment Operators Increment and Decrement Operators Introduction to Windows Application Programming Control Structures: Part 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 Introduction Essentials of Counter-Controlled Repetition for Repetition Structure Examples Using the for Structure switch Multiple-Selection Structure do/while Repetition Structure Statements break and continue Logical and Conditional Operators Structured-Programming Summary 4.10 www.elsolucionario.net 33 34 34 37 39 39 40 42 42 44 59 60 60 71 75 76 80 109 116 120 121 124 139 140 140 142 146 152 156 158 160 166 Contents X Methods 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 Introduction Program Modules in C# Math Class Methods Methods Method Definitions Argument Promotion C# Namespaces Value Types and Reference 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 Arrays 7.1 7.2 7.3 7.4 7.9 7.10 Introduction Arrays Declaring and Allocating 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 and Binary 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 Object-Based Programming 8.1 8.2 8.3 8.4 8.5 8.6 8.7 Introduction Implementing a Time Abstract Data Type with a Class Class Scope Controlling Access to Members Initializing Class Objects: Constructors Using Overloaded Constructors Properties 7.5 7.6 7.7 7.8 178 179 179 181 181 183 193 195 196 197 200 207 212 212 215 219 222 223 236 www.elsolucionario.net 237 237 239 240 240 242 243 244 247 250 253 257 260 260 261 265 272 280 281 282 290 290 292 293 297 Contents XI 8.8 8.9 8.10 8.11 8.12 8.13 8.14 8.15 8.16 8.17 Composition: Objects References as Instance Variables of Other Classes Using the this Reference Garbage Collection static Class Members const and readonly Members Indexers Data Abstraction and Information Hiding Software Reusability Namespaces and Assemblies Class View and Object Browser Object-Oriented Programming: Inheritance 9.1 9.2 9.3 9.4 9.5 9.6 9.7 Introduction Base Classes and Derived Classes protected and internal Members Relationship between Base Classes and Derived Classes Case Study: Three-Level Inheritance Hierarchy Constructors and Destructors in Derived Classes Software Engineering with Inheritance 10 Object-Oriented Programming: Polymorphism 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 Introduction Derived-Class-Object to Base-Class-Object Conversion Type Fields and switch Statements Polymorphism Examples Abstract Classes and Methods Case Study: Inheriting Interface and Implementation sealed Classes and Methods Case Study: Payroll System Using Polymorphism Case Study: Creating and Using Interfaces Delegates Operator Overloading 11 Exception Handling 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 Introduction Exception Handling Overview Example: DivideByZeroException NET Exception Hierarchy finally Block Exception Properties Programmer-Defined Exception Classes Handling Overflows with Operators checked and unchecked 12 Graphical User Interface Concepts: Part 12.1 12.2 Introduction Windows Forms www.elsolucionario.net 306 309 311 312 317 319 326 327 328 333 342 343 344 347 347 368 371 377 382 383 383 390 391 392 394 402 403 413 425 430 438 439 440 443 448 449 457 462 466 474 475 476 Contents XII 12.3 Event-Handling Model 12.3.1 Basic Event Handling 12.4 Control Properties and Layout 12.5 Labels, TextBoxes and Buttons 12.6 GroupBoxes and Panels 12.7 CheckBoxes and RadioButtons 12.8 PictureBoxes 12.9 Mouse Event Handling 12.10 Keyboard Event Handling 13 Graphical User Interfaces Concepts: Part 13.1 13.2 13.3 13.4 Introduction Menus LinkLabels ListBoxes and CheckedListBoxes 13.4.1 ListBoxes 13.4.2 CheckedListBoxes 13.5 ComboBoxes 13.6 TreeViews 13.7 ListViews 13.8 Tab Control 13.9 Multiple-Document-Interface (MDI) Windows 13.10 Visual Inheritance 13.11 User-Defined Controls 479 480 484 488 495 498 507 509 511 520 521 521 530 534 537 539 542 547 553 560 565 574 578 14 Multithreading 14.1 14.2 14.3 14.4 14.5 14.6 14.7 Introduction Thread States: Life Cycle of a Thread Thread Priorities and Thread Scheduling Thread Synchronization and Class Monitor Producer/Consumer Relationship without Thread Synchronization Producer/Consumer Relationship with Thread Synchronization Producer/Consumer Relationship: Circular Buffer 590 15 Strings, Characters and Regular Expressions 632 15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 15.9 15.10 Introduction Fundamentals of Characters and Strings String Constructors String Indexer, Length Property and CopyTo Method Comparing Strings String Method GetHashCode Locating Characters and Substrings in Strings Extracting Substrings from Strings Concatenating Strings Miscellaneous String Methods 633 633 635 636 638 642 643 646 647 648 www.elsolucionario.net 591 592 594 599 601 607 616 Contents XIII 15.11 Class StringBuilder 15.12 StringBuilder Indexer, Length and Capacity Properties, and EnsureCapacity Method 15.13 StringBuilder Append and AppendFormat Methods 15.14 StringBuilder Insert, Remove and Replace Methods 15.15 Char Methods 15.16 Card Shuffling and Dealing Simulation 15.17 Regular Expressions and Class Regex 16 Graphics and Multimedia 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 16.10 16.11 16.12 16.13 Introduction Graphics Contexts and Graphics Objects Color Control Font Control Drawing Lines, Rectangles and Ovals Drawing Arcs Drawing Polygons and Polyli]nes Advanced Graphics Capabilities Introduction to Multimedia Loading, Displaying and Scaling Images Animating a Series of Images Windows Media Player Microsoft Agent 17 Files and Streams 17.1 17.2 17.3 17.4 17.5 17.6 17.7 17.8 17.9 17.10 17.11 Introduction Data Hierarchy Files and Streams Classes File and Directory Creating a Sequential-Access File Reading Data from a Sequential-Access File Random-Access Files Creating a Random-Access File Writing Data Randomly to a Random-Access File Reading Data Sequentially from a Random-Access File Case Study: A Transaction-Processing Program 18 Extensible Markup Language (XML) 18.1 18.2 18.3 18.4 18.5 Introduction XML Documents XML Namespaces Document Object Model (DOM) Document Type Definitions (DTDs), Schemas and Validation 18.5.1 Document Type Definitions 18.5.2 Microsoft XML Schemas 18.5.3 W3C XML Schema www.elsolucionario.net 650 652 654 658 661 664 668 684 685 687 688 696 701 704 707 711 717 718 720 733 736 757 757 757 759 761 771 783 794 798 802 807 812 838 839 839 844 847 865 866 869 872 Contents XIV 18.6 18.7 18.8 18.5.4 Schema Validation in C# Extensible Stylesheet Language and XslTransform Microsoft BizTalk™ Internet and World Wide Web Resources 19 Database, SQL and ADO NET 19.1 19.2 19.3 19.4 19.7 19.8 Introduction Relational Database Model Relational Database Overview: Books Database Structured Query Language (SQL) 19.4.1 Basic SELECT Query 19.4.2 WHERE Clause 19.4.3 ORDER BY Clause 19.4.4 Merging Data from Multiple Tables: INNER JOIN 19.4.5 Joining Data from Tables Authors, AuthorISBN, Titles and Publishers 19.4.6 INSERT Statement 19.4.7 UPDATE Statement 19.4.8 DELETE Statement ADO NET Object Model Programming with ADO NET: Extracting Information from a DBMS 19.6.1 Connecting to and Querying an Access Data Source 19.6.2 Querying the Books Database Programming with ADO.NET: Modifying a DBMS Reading and Writing XML Files 20 ASP NET, Web Forms and Web Controls 19.5 19.6 20.1 20.2 20.3 20.4 20.5 Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web Controls 20.5.1 Text and Graphics Controls 20.5.2 AdRotator Control 20.5.3 Validation Controls 20.6 Session Tracking 20.6.1 Cookies 20.6.2 Session Tracking with HttpSessionState 20.7 Case Study: Online Guest Book 20.8 Case Study: Connecting to a Database in ASP NET 20.9 Tracing 20.10 Internet and World Wide Web Resources 21 ASP NET and Web Services 21.1 Introduction www.elsolucionario.net 873 877 884 887 895 896 897 898 905 905 906 909 912 914 917 918 919 920 921 921 928 930 938 948 949 950 952 953 966 967 971 976 987 988 997 1006 1013 1027 1030 1039 1040 Contents XV 21.2 21.3 21.4 21.5 21.6 21.7 21.8 Web Services Simple Object Access Protocol (SOAP) and Web Services Publishing and Consuming Web Services Session Tracking in Web Services Using Web Forms and Web Services Case Study: Temperature Information Application User-Defined Types in Web Services 22 Networking: Streams-Based Sockets and Datagrams 1106 22.1 22.2 22.3 22.4 22.5 22.6 Introduction Establishing a Simple Server (Using Stream Sockets) Establishing a Simple Client (Using Stream Sockets) Client/Server Interaction with Stream-Socket Connections Connectionless Client/Server Interaction with Datagrams Client/Server Tic-Tac-Toe Using a Multithreaded Server 23 Data Structures and Collections 23.1 23.2 23.3 23.4 23.5 23.6 Introduction Self-Referential Classes Linked Lists Stacks Queues Trees 23.6.1 Binary Search Tree of Integer Values 23.6.2 Binary Search Tree of IComparable Objects Collection Classes 23.7.1 Class Array 23.7.2 Class ArrayList 23.7.3 Class Stack 23.7.4 Class Hashtable 23.7 24 Accessibility 24.1 24.2 24.3 24.4 24.5 24.6 Introduction Regulations and Resources Web Accessibility Initiative Providing Alternatives for Images Maximizing Readability by Focusing on Structure Accessibility in Visual Studio NET 24.6.1 Enlarging Toolbar Icons 24.6.2 Enlarging the Text 24.6.3 Modifying the Toolbox 24.6.4 Modifying the Keyboard 24.6.5 Rearranging Windows Accessibility in C# Accessibility in XHTML Tables Accessibility in XHTML Frames 24.7 24.8 24.9 1041 1044 1046 1062 1075 1081 1091 1107 1108 1110 1111 1120 1125 1145 1146 1146 1148 1160 1165 1168 1170 1177 1185 1185 1188 1194 1198 1212 www.elsolucionario.net 1213 1214 1216 1216 1218 1218 1219 1220 1221 1221 1222 1224 1230 1234 Contents XVI 24.10 24.11 24.12 24.13 24.14 24.15 Accessibility in XML Using Voice Synthesis and Recognition with VoiceXML™ CallXML™ JAWS® for Windows Other Accessibility Tools Accessibility in Microsoft® Windows® 2000 24.15.1 Tools for People with Visual Impairments 24.15.2 Tools for People with Hearing Impairments 24.15.3 Tools for Users Who Have Difficulty Using the Keyboard 24.15.4 Microsoft Narrator 24.15.5 Microsoft On-Screen Keyboard 24.15.6 Accessibility Features in Microsoft Internet Explorer 5.5 24.16 Internet and World Wide Web Resources A 1235 1235 1243 1248 1249 1251 1252 1254 1255 1258 1261 1262 1264 Operator Precedence Chart 1273 B Number Systems (on CD) 1275 B.1 B.2 B.4 B.5 B.6 Introduction Abbreviating Binary Numbers as Octal Numbers and Hexadecimal Numbers Converting Octal Numbers and Hexadecimal Numbers to Binary Numbers Converting from Binary, Octal or Hexadecimal to Decimal Converting from Decimal to Binary, Octal, or Hexadecimal Negative Binary Numbers: Two’s Complement Notation C Career Opportunities (on CD) C.1 C.2 C.3 C.4 C.5 C.6 Introduction Resources for the Job Seeker Online Opportunities for Employers Recruiting Services Career Sites Internet and World Wide Web Resources 1290 1291 1292 1297 1298 1303 D Visual Studio NET Debugger 1311 D.1 D.2 D.3 D.4 D.5 D.6 Introduction Breakpoints Examining Data Program Control Additional Method Debugging Capabilities Additional Class Debugging Capabilities E Generating Documentation in Visual Studio (on CD) 1329 E.1 E.2 E.3 Introduction Documentation Comments Documenting C# Source Code B.3 www.elsolucionario.net 1276 1279 1281 1281 1282 1283 1289 1312 1313 1315 1318 1322 1324 1330 1330 1331 1554 PARC (Palo Alto Research Center) parent element 841 parent menu 522 parent node 547, 847, 1169, 1209 parentheses () 77 parentheses “on the same level” 78 Parse method 75, 114 parsed character data 867 parser 841, 846 partition 279 partitioning step 278, 279 Pascal programming language 10, 19 Pascal, Blaise 10 pass-by-reference 197 pass-by-value 197 pass of a sorting algorithm 257 passing an array element 250 Passing an array reference using ByVal and ByRef with an array 254 passing an array to a method 250 Passing arrays and individual array elements to methods 251 password box 1406, 1466 password textbox 488 PasswordChar property of TextBox class 488, 489 paste 38 Path property of HttpCookie class 997 path to a resource 950 PathGradientBrush class 711 PathNavigator.cs 858 Paths used to draw stars on a form 715 pattern matching 908 pattern of 1s and 0s 758 payroll system 390, 758 #PCDATA flag 867 Peedy calculating the total 742 Peedy flying animation 739 Peedy introducing himself when the window opens 737 Peedy recounting the order 741 Peedy repeating the user’s request for anchovies as an additional topping 741 Peedy repeating the user’s request for Seattle-style pizza 740 Peedy the ParrotMicrosoft Agent character 736 Index Peedy waiting for speech input 740 Peedy’s reaction when he is clicked 738 Peek method of class Stack 1198 Pen class 685, 689, 701 percent sign (%) is the modulus operator 76 Performance Tip 12 performing a calculation 85 Perl progamming language 19 permission settings 554 persistent data 757 persistent information 987 Person class implements IAge interface 415 personal computer personal computing personalization 987 PhotoShop Elements 1441 PhysicalApplicationPath property of Request class 1006 “pick off” each digit 93 picture box 49, 507 picture.html 1382, 1441 PictureBox class 507, 570 PictureBox properties and events 507 PictureBoxTest.cs 507 PieceWorker class inherits from class Employee 408 Pig Latin 683 pin a window 40 Pink static property of structure Color 689 pixel 1441 Pixel member of enumeration GraphicsUnit 696 platform independence 17, 19 play element 1249 Play method of interface IAgentCtlCharacter 748 playback, choppy 592 player thread 592 plus sign (+) 841 plus sign (+) occurence indicator 866 Point class represents an x-y coordinate pair 348, 384 Point marked up with XML comments 1331 point-of-sale system 794 Point structure 686 www.elsolucionario.net Point2 class inherits from abstract class Shape 395 Point2 class represents an x-y coordinate pair as protected data 357 Point3 class implements interface IShape 420 Point3 class uses properties to manipulate its private data 362 Point3.cs 420 Point4 base class contains constructors and finalizer 372 PointTest class demonstrates class Point functionality 350 poker 683 Polygon-drawing demonstration 708 polymorphic processing of related errors 448 polymorphic programming 390, 394 polymorphic screen manager 391 polymorphism 22, 156, 282, 378, 383, 388, 391, 393, 403 polymorphism as an alternative to switch logic 437 polynomial 79, 80 pool of threads 1110 Pop method of class Stack 1194, 1195 pop stack operation 1160 popping off a stack 326 port number 1108, 1109 portability 19, 1353 Portability Tip 12 portable 839 porting 19 position number 237 positional notation 1277 Positional value 1278 Positional values in the decimal number system 1278 705 positive and negative arc angles 705 positive infinity 446 post request type 1248, 1464 postback 983 postdecrement 121, 145 postincrement 121, 123, 145 postorder traversal of a binary tree 1170 Index Pow method of class Math 150, 151, 182, 1096 power 182 Precedence and associativity chart 166 Precedence and associativity of the operators discussed so far in this book 123, 239 precedence chart 78, 115 precedence chart Appendix 1273 precedence of arithmetic operators 78, 123, 239 precedence rule 77 predecrement 121 predicate method 285, 1150 preincrement 121, 123, 145 premature program termination 249 preorder traversal of a binary tree 1170 prepackaged data structures 1185 presentation logic 953 presentation of a document 1375, 1431 previous statement, variable in 1317 PrevNode property of class TreeNode 549 primary interop assembly 1367 primary key 897, 904 primary memory prime number 1508 primitive (or built-in) data-type 194, 196, 212 primitive data type 73 primitive data types are initialized to null 212 Princeton Review 1302 print a line of text 64 print spooling 1165 PrintBits.cs 1498 printing a project 38 Printing on multiple lines with a single statement 67 Printing on one line with separate statements 67 Priority property of class Thread 595 privacy invasion 987 privacy protection 987 private member access modifier 284, 285, 291, 297 Private members of a base class 346 probability 201 1555 procedural programming language 11, 282 procedure for solving a problem 95 Process class 531 processing instruction 878 processing instruction target 878 processing instruction value 878 processing phase 112 processing unit produce method 601 producer 615 Producer and consumer threads accessing a circular buffer 617 producer and consumer threads accessing a circular buffer 617 Producer and consumer threads accessing a shared object with synchronization 607 producer and consumer threads accessing a shared object with syncronization 607 Producer and consumer threads accessing a shared object without synchronization 602 producer and consumer threads accessing a shared object without syncronization 602 producer thread 601 producer/consumer relationship 601 productivity 13 program program construction principles 140 program control 60, 96 program development 60 program development process 326 program development tool 120 program execution stack 1160 program in the general 437 program termination 249 Program that demonstrates class Array 1186 Program that prints histograms 243 Program to display hidden text in a password box 490 Program to simulate the game of craps 208 program, break execution 1318 program, suspend 1313 programmer programmer-defined class 62 www.elsolucionario.net Examples Programmer-defined control that displays the current time 580 Programmer-defined control that displays the current time 580 Programmer-defined Maximum method 188 programmer-defined method 180 programmer-defined type 282 project 36 Project Mac 13 Project menu of VIsual Studio 38, 283 Project properties dialog 582 project, Windows control library 581 promotion 115, 987 prompt 73, 114 prompt element in VoiceXML 1241 tag 1242 Properties demonstration for class Time3 301 Properties of class Control related to accessibility 1225 Properties window 42, 43, 46, 49, 126, 963 Properties window on a Web Page 1028 Properties.cs 458 property 42 property definition 291 property for a form or control 42 property of an object 11, 20 Proposed Recommendation 15 Protected 347 protection 1021 proxy 1364 proxy class for Web services 1046, 1053, 1054 pseudocode 21, 96, 99, 105, 107, 110, 111, 118 pseudocode algorithm 111 pseudocode if/else structure 101 pseudocode statement 105 pseudo-random number 201 public interface 285 public keyword 405 public member access modifier 284, 285 public member of a derived class 346 public method 286 1556 public operation encapsulated in an object 290 public service 285 public static members 313 Publication page of Deitel and Associates’ VoiceXML page 1238 publishers table of books database 898, 899 publishing a Web service 1046 Pulse method of class Monitor 594, 600, 607 Pulse method of Monitor 615 PulseAll method of class Monitor 594, 600 Push method of class Stack 1194 push stack operation 1160 pushing into a stack 326 PWS (Personal Web Server) 1405 Pythagorean Triples 177 Python progamming language 19 Q quantifier 671 Quantifiers used in regular expressions 672 Quantifiers used regular expressions 672 quantum 594 quantum expiration 593 query 896, 898 query a database 921 Question 148 question mark (?) occurence indicator 866 queue 26, 285, 327, 1146, 1165 Queue class 1185 QueueInheritance extends class List 1166 QueueInheritanceLibrary.cs 1166 QueueTest.cs 1167 quicksort 278 R R property of structure Color 689 RAD (rapid applications development) 9, 23, 327 radian 182 radio 1409, 1469 radio button 488, 501 radio button group 501 Index radio buttons, using with TabPage 565 RadioButton class 498, 501 RadioButton properties and events 502 RadioButtonsTest.cs 502 RadioCheck property of class MenuItem 524, 530 RAM (Random Access Memory) random-access file 25, 757, 794, 807, 827 random access memory (RAM) Random class 200, 1097 random number generation 664, 683 Random-access file with fixedlength records 795 RandomAccessRecord.cs 795 rapid application development (RAD) 9, 23, 327 rapid applications development (RAD) 327 RCW (Runtime Callable Wrapper) 1368 RDBMS (relational database management system) 952 RDK (Redistribution Kit) 1249 Read method 876 Read method of class Console 760 Read method of class NetworkStream 1110 read-only text 488 readability 61, 62, 1218, 1266, 1432 ReadByte method of class NetworkStream 1110 807, 784 ReadLine method of class Console 73, 760 readonly keyword 22, 317 ReadOnly property 489 807, 784 ReadString method of class BinaryReader 1119 ReadXml method of DataSet 938 Ready thread state 593 real number 73 receive a connection 1118 receive data from a server 1119 Receive method of class Socket 1109 www.elsolucionario.net Receive method of class UdpClient 1120, 1125 ReceiveFrom method of class Socket 1109 receiving an array through a method call 250 “receiving” section of the computer receiving temperature and weather data from a Web service 1087 recent project 34 reclaim memory 316 reclaiming dynamically allocated memory 592 recognizing clients 987 RecommendationsPage.aspx 994, 1003 RecommendationsPage.aspx.cs 995, 1004 record 758, 897, 903 Record for random-access fileprocessing applications 795 Record for sequential-access fileprocessing applications 774 record key 758, 794 record set 898 record size 794 Record.cs 774 recordAudio element 1249 Record-transaction class for the transaction-processor case study 812 Recruitsoft.com 1297 Rectangle structure 685, 686, 702, 714 rectangle symbol 98, 100, 105, 145, 155, 166 rectangular array 265 rectangular hotspot 1418, 1477 recursion 553 recursion overhead 222 recursion step 216, 220 recursion vs iteration 222 recursive call 216, 220, 221 Recursive evaluation of 5! 217 recursive method 21, 215, 218 recursive method Factorial 216 recursive program 221 recursive searching 278 recursive step 278 recursive version of the binary search 260 Index recursive version of the linear search 260 Recursively generating Fibonacci numbers 219 red circle, solid 1314, 1319 Red static property of structure Color 689 Redistribution Kit (RDK) 1249 redundant parentheses 79 ref keyword 198 reference 1338 reference manipulation 1146 reference to a new object 287 reference type 196 referring to a base-class object with a base-class reference 389 referring to a base-class object with a derived-class reference 390 referring to a derived-class object with a base-class reference 390 referring to a derived-class object with a derived-class reference 389 refinement process 110 Regex class 633, 669, 670 Regex methods Replace and Split 677 Regex methods Replace and Split 677 RegexMatches.cs 669 RegexSubstitution.cs 677 regional invalidation 722 register event handler 483 directive 1015 Registering an ActiveX control 1363 RegSvr32 utility 1363, 1367 regular expression 765 766 Regular expressions checking birthdays 669 Regular member of enumeration FontStyle 697 “reinventing the wheel” 62 relational database 896 relational database management system (RDBMS) 952 relational database model 897 relational database table 897 Relational-database structure of an Employee table 897 1557 relative positioning 963 release a lock 614, 615 release resource 450 release the lock 626 remainder 77 remarks tag 1338 remote machine 1041 Remote Procedure Call (RPC) 16, 1041 Remove member of enumeration MenuMerge 568 Remove Method if TreeNodeCollection 853 Remove method of class ArrayList 1189, 1193 Remove method of class StringBuilder 658 Remove method of class TreeNodeCollection 549 Remove method of Hashtable 1204 RemoveAt method of class ArrayList 1189 RemoveRange method of class ArrayList 1189 Removing tabs from Visual Studio environment 1223 renaming code files in Visual Studio NET 66 renders 952 repetition 167, 170, 171 repetition control structure 97, 98, 99, 105, 110 repetition structure 21 repetition structure for iteration 222 Replace member of enumerationMenuMerge 568 Replace method of class Regex 677, 678 Replace method of class String 648, 649 Replace method of class StringBuilder 659 Report Expert 1514 Request class 1006 Cookies property 996 PhysicalApplicationPath property 1006 request for proposal 1300 Request object 983, 996 RequiredFieldValidator class 979 Reservation.asmx.cs 1076 reserved word 62 www.elsolucionario.net reserving memory 240 Reset of IEnumerator 1194 resolution 686 resource leak 311, 441, 449 Response.Write 1027 responses to a survey 247, 249 Restart button 1318 result of an uncaught exception 442 result set 898, 906 result tree 877 Results of combining two bits with the bitwise AND operator (&) 1497 Results of combining two bits with the bitwise exclusive OR operator (^) 1498 Results of combining two bits with the bitwise inclusive OR operator (|) 1497 results of invoking a Web service method from a Web browser 1044 resume 1291, 1296 Resume method of class Thread 594 resume-filtering software 1296 resumption model of exception handling 442 rethrow an exception 456 RetryCancel 148 return from a method 180 return statement 185, 186, 188, 216 return-value-type 186 returning an object from a Webservice method 1097 returns tag 1338, 1339 reusability 1146 reusable component 344 reusable software component 12, 13, 40, 328 reuse 62 Reverse method of class Array 1188 RGB values 688, 689 Richards, B Martin right brace (}) 63, 71, 114 right child 1169 right-shift assignment operator (>>=) 1508 right-shift operator (>>) 1496, 1497, 1504 right subtree 1169, 1176 RightToLeft property of class MainMenu 524 1558 “rise-and-shine algorithm” 95 Ritchie, Dennis Robby the Robot Microsoft Agent character 736 robust application 74, 439 Rolling dice in a windows application 203 root element 840, 868 root node 547, 847, 1169 root node, create 547 RotateTransform method of class Graphics 717 round 182 Round member of enumeration DashCap 715 round-robin 594 rounding 77 rounding error 195 row 897 rows attribute (textarea) 1408, 1465 rows to be retrieved 905 rowspan attribute (tr) 1403, 1460 RPC (Remote Procedure Call) 16, 1041 RPG progamming language 19 Rule of Entity Integrity 903, 904 Rule of Referential Integrity 904 rules of operator precedence 77 Run command in Windows 531 run element 1248 Run menu 52 run mode 52 run-time exception 448 run-time logic error 73 Runnable thread state 593 running an application 531 Running thread state 593, 596 Runtime Callable Wrapper (RCW) 1368 S Salary.com 1302 783 Sample Internet Explorer window with GUI components 476 SaveFileDialog class 776 Saving a document to a file 1340 sbyte primitive data type 196 sbyte promotions 194 scalar quantities 250 scalars 250 scaling 201 scaling factor 201 Index scheduling 594 Schema 865, 869 schema element 873 schema repository 871 Schemas property of XmlSchemaCollection 876 Schema-validation example 874 Scheme progamming language 19 scope 212, 290 scope (block) 213 scope (class) 213 scope (global) 213 scope of a variable 144 scope of an identifier 212 Scoping example 213 screen 3, 4, screen cursor 68 screen-manager program 391 screen reader 1217, 1230, 1248, 1258, 1263 script 1357, 1433 scrollbar 475, 476 scrollbar and window border size dialog 1252 scrollbar in panel 496 SDI (single document interface) 565 SDI and MDI forms 566 SDK (Software Development Kit) 1249 sealed 402 search engine 1378, 1418, 1434, 1478 search key 260 searching 259, 260, 1146 Searching for characters and substrings in Strings 643 searching technique 237 second-degree polynomial 79, 80 second refinement 117 secondary storage 4, 13 secondary storage device 757 sector 705 Secure property of HttpCookie class 997 secure protocol 997 seed 201 SeekOrigin enumeration 806 SeekOrigin.Begin constant 806 SELECT 898, 905, 906, 907, 908, 909, 910, 911, 913 select 898, 905 select all fields from a table 906 Select Case logic 390 www.elsolucionario.net SelectCommand property of OleDbAdapter 927 selected attribute 1473 selected state 501 SelectedImageIndex property of class TreeNode 549 SelectedIndex property of class ComboBox 543 SelectedIndex property of class ListBox 535 SelectedIndex property of class TabControl 562 SelectedIndexChanged event of class ComboBox 543 SelectedIndexChanged event of class ListBox 536 SelectedIndexChanged event of class TabControl 562 SelectedIndices property of class ListBox 535 SelectedItem property of class ComboBox 543 SelectedItem property of class ListBox 535 SelectedItem property of class ListView 554 SelectedNode property of class TreeView 549 SelectedTab property of class TabControl 562 selecting 34 Selecting the Build Comment Web Pages from Tools menu 1339 selection 167, 168, 170 selection control structure 21, 97, 98, 99 selection criteria 906 selection structure for recursion 222 SelectionMode enumeration 534 SelectionMode property of class CheckedListBox 540 SelectionMode property of class ListBox 534, 535 SelectionMode.MultiExtended 534 SelectionMode.MultiSimple 534 SelectionMode.None 534 SelectionMode.One 534 Index self-documenting 73 self-referential class 1146, 1148 Self-referential class objects linked together 1148 Self-referential object 1147 semicolon (;) 64, 73, 84, 104 send data to a server 1119 Send method of class Socket 1109 Send method of class UdpClient 1120, 1125 sendEvent element 1248 SendTo method of class Socket 1109 sentinel-controlled repetition 109, 110, 111, 114 sentinel value 109, 114 separator bar 523 separator, menu 523 sequence 167, 170, 171, 1168 sequence control structure 97, 99, 110 sequence element 873 sequence of items 1148 sequence structure 21 sequence type 1450 sequential-access file 757, 759, 776, 794, 827 sequential execution 96 sequential file 25 Serializable attribute 771 SerializationException 784 Serialize method of class BinaryFormatter 782 serialized object 771 server server Internet address 1119 server port number 1119 Server portion of a client/server stream-socket connection 1111 Server side of client/server TicTac-Toe program 1126 Server.cs 1111, 1120 Server-side portion of connectionless client/server computing 1120 ServerValidate event of CustomValidator class 1015, 1020 ServerValidateEventArgs class 1020 IsValid property 1020 Value property 1020 service 291 1559 service description for a Web service 1042, 1043 session 1243 session attribute 1248 Session data read by an ASP NET Web application to provide recommendations for the user 1004 session ID 987 Session information displayed in a ListBox 1003 session item 1002 Session property of Page class 999 session tracking 987 sessionID 1243 SessionID property of HttpSessionState class 1003 Sessions are created for each user in an ASP NET Web application 999 Sessions created for each user in an ASP NET Web application 999 session-tracking 988 set accessor 291, 297, 298, 301 Set Automatic Timeouts 1258, 1259 SET keyword 918 SET keyword 918 Set method of class BitArray 1508 Set of recursive calls to method Fibonacci 221 SetAll method of class BitArray 1510 setAttribute method of interface HttpSession 1002 SetAuthCookie method of FormAuthenication class 1020 SetDataBinding method of DataGrid 928 Setting the form’s Text property 46 Setting the project location 46 SGML (Standard Generalized Markup Language) 14 shape class hierarchy 346, 347, 381 Shapes 712 Shapes drawn on a form 712 shared buffer 601, 615 shared library 1362 www.elsolucionario.net shared memory 601 shift 201 Shift key 511 Shift property 514 Shifted random integers 201 “shipping” section of the computer short primitive data type 196 short promotions 194 short-circuit evaluation 162 shortcut key 522, 1221 Shortcut key creation 1223 Shortcut property of class MenuItem 524 shortcuts with the & symbol 522 Show method 485 Show method of class Form 567, 574 Show method of class MessageBox 70, 147 Show method of interface IAgentCtlCharacter 748 Show Next Statement button 1318 Show of class Form 478 690 ShowDialog method of class OpenFileDialog 783, 788 ShowDialog method of class SaveFileDialog 776 ShowShortcut property of class MenuItem 525 ShowSounds 1255, 1257 sibling 1169 sibling node 547, 847 side effect 162, 221 Sieve of Eratosthenes 1508 signal value 109 signature 224, 225, 366 silicon chip Simple Class Library 332 simple condition 160 Examples Simple event-handling example using visual programming 481 Simple event-handling example using visual programming 481 Simple Object Access Protocol (SOAP) 10, 16, 20, 1041, 1043 Simple program as it executes 45 1560 Simple student-poll analysis program 248 Simple style for ComboBox 544 SimpleEventExample.cs 481 simplest flowchart 168, 169 Simula 67 programming language simulate coin tossing 234 Simulating rolling 12 six-sided dice 205 simulation 200 Sin method of class Math 182 sine 182 single document interface (SDI) 565 single-entry/single-exit control structure 99, 100, 166, 167 single inheritance 343 single-line comment 61, 73, 75 single-quote character (’) 844 single-selection structure 98, 170 single-subscripted array 265, 266 singlecast delegate 426 single-clicking with left mouse button 34 single-quote character 908 sinking a large value 259 SixFigureJobs 1301 size attribute (input) 1406, 1465 size of a variable 75 Size property of class Font 488, 696 SizeInPoints property of class Font 696 SizeMode property 507 sizing handle 47 sizing handle, disabled 47 sizing handle, enabled 47 Sleep method of class Thread 594, 595, 606 sleeping thread 595 small circle symbol 98, 155 SmallImageList property of class ListView 554 Smalltalk programming language 8, 19 SMIL (Synchronized Multimedia Integration Language) 25, 1250 “sneakernet” SOAP (Simple Object Access Protocol) 10, 16, 20, 1041, 1043 SOAP encoding rule 16 Index SOAP envelope 1045 SOAP request 1045 SOAP Request for the HugeInteger Web service 1045 socket 1107 Socket class 1118 software software component 17 Software Development Kit (SDK) 1249 Software Engineering Observation 12 software reusability 12, 182, 290, 328, 343 Solaris solid arc 705 solid polygon 708 solid rectangle 702 SolidBrush class 693, 697, 701 solution 36 Solution Explorer after adding a Web reference to a project 1057 Solution Explorer in Visual Studio NET 39, 574 Solution Explorer window 40, 1367 Solution Explorer window for project WebTime 961 solution, debug setting 1314 Some basic GUI components 476 Some common escape sequences 68 Some methods of class ArrayList 1189 Sort method of class Array 1185 Sort method of class ArrayList 1189 Sort property 1027 Sort property in DataView class 1027 sorted array 1150 Sorted property of class ComboBox 543 Sorted property of class ListBox 535 SortedList class 1185 sorting 257, 1146 sorting a large array 259 Sorting an array with bubble sort 257 sorting schemes 257 sorting technique 237 sorting.xml 878 sorting.xsl 879 www.elsolucionario.net SoundSentry 1254 source code 1339 source-code form 1376, 1431 source tree 877 space character 62 spacing convention 63 span attribute 955, 1460 spawning 1109 special character 62, 634, 1387, 1405, 1445, 1446 special symbol 758 speech device 1459 speech recognition 24, 1250, 1265 speech recognition engine 736 speech synthesis 24, 1250, 1265 speech synthesizer 1250, 1442 spiral 219 split a statement 70 Split method of class Regex 677, 678 spooling 1165 sports.xml 864 SQL (Structured Query Language) 896, 898, 905 SQL keywords 905 SQL query keywords 905 SQL statement 898 Sqrt method of class Math 182, 188, 464 square 344, 1450 square brackets in a query 906 square root 182 SquareRootTest.cs 464 src attribute (img) 1385, 1441, 1444 Src file 1015 stack 26, 234, 285, 326, 1160 stack 1160 Stack class 1185, 1194 stack unwinding 443, 458 StackComposition class encapsulates functionality of class List 1164 StackCompositionLibrary.cs 1164 stacking 171 stacking rule 168 StackInheritance extends class List 1161 StackInheritanceLibrary.cs 1161 StackInheritanceTest.cs 1162 StackTest.cs 1195 StackTrace property of Exception 457, 458, 461 Index standard character 1405 standard error 760 Standard Generalized Markup Language (SGML) 14 standard input 759 Standard ML language 19 standard output object 64, 760 standard reusable component 344 standard time format 288 start a multiline comment (/*) 61 Start button 52 Start method of class Process 531 Start method of class TcpListener 1109 Start method of class Thread 593, 598 Start Page 34 Start Page in Visual Studio NET 35 start tag 598, 840, 843, 1433 StartDialog.cs 817 StartDialogForm class enables users to access dialog boxes associated with various transactions 817 Started thread state 593, 615 starting angle 704 StartsWith and EndsWith methods 641 StartsWith method of class String 641 startup project 39 starvation 595 state button 498 stateless protocol 987 statement 64 statement terminator (;) 64 static constructor 312 static duration 212 static entities 237 static keyword 312, 313, 315, 316, 317, 318 static member demonstration 315 static members are accessible to all objects of a clas 314 static method 70, 150 static method cannot access non-static class members 313 Static method Concat 648 static variable 313 Step Into button 1323 Step Out button 1323 Step Over button 1318 1561 StickyKeys 1255 Stop Debugging button 1318, 1320 Stopped thread state 593, 594, 627 straight line 715 straight-line form 77 Stream class 760 stream input/output 757 stream of bytes 759 stream of input 109 stream socket 1125 StreamReader class 760 streams 1108 streams-based transmission 1120, 1140 StreamWriter class 760 Strikeout member of enumeration FontStyle 697 Strikeout property of class Font 696 string 24, 64 String class 286, 405, 406, 633 String Collection Editor in Visual Studio NET 536 string concatenation 83 string constant 634 String constructors 635 string formatting codes 151 String indexer 638 String indexer, Length properties and CopyTo method 636 String Length property, the CopyTo method and StrReverse function 636 string literal 64, 634 String methods Replace, ToLower, ToUpper, Trim and ToString 649 string of characters 64 string primitive data type 72, 197 String test to determine equality 639 String testing for equality 639 StringBuilder class 633, 651 StringBuilder class constructors 651 StringBuilder size manipulation 653 StringBuilder text insertion and removal 658 StringBuilder text replacement 659 www.elsolucionario.net StringBuilder’s AppendFormat method 656 StringBuilderAppend.cs 655 StringBuilderAppendFormat.cs 656 StringBuilderConstructor.cs 651 StringBuilderFeatures.cs 653 StringBuilderInsertRemove.cs 658 StringBuilderReplace.cs 659 StringCompare.cs 639 StringConstructor.cs 635 StringHashCode.cs 642 StringIndexMethods.cs 643 StringMethods.cs 636 StringMiscellaneous2.c s 649 StringStartEnd.cs 641 strong element 1438 strongly typed language 196 Stroustrup, Bjarne 8, 439 struct keyword 661 structure 661 structured programming 2, 10, 11, 21, 85, 97, 140, 159, 171, 326 Structured Query Language (SQL) 896, 898, 905 structured systems analysis and design 11 style sheet 841, 1262, 1433 sub element 1387, 1446 sub-initializer list 266 subarray 261 subclass 125 SubConcatination.cs 648 tag 1242 submenu 522 submit attribute 1248 submit data to a server 1406 submit input 1406 subscript 238, 249, 266, 1387, 1446 subscription-based software 18 Substring method of class String 646 SubString.cs 646 Substrings generated from Strings 646 subtraction assignment operator (-=) 121 1562 Success property of Match 671 sum function 882 Sum.cs 147 summarizing responses to a survey 247 summary attribute 1234, 1459 summary tag 1338 Summation using for 147 Sun Microsystems, Inc 1351 sup element 1446 superclass 125 supercomputer superscript 1387, 1446 suspend a program 1313 Suspend method of class Thread 594 Suspended thread state 594 sweep 704 switch logic 156 switch selection structure 21, 98, 152, 155, 167, 170 SwitchTest.cs 152 Sybase, Inc 897, 1351 symbol 1350 SyncBlock 599, 614 synchronization 599, 601, 607 synchronized 1150 Synchronized Multimedia Integration Language (SMIL) 1250 Synchronized.cs 607 synchronous error 440 syntax error 64, 66, 105 syntax error in HTML 1376 system caret 1263 SYSTEM flag 868 System namespace 62, 284, 633 system service 1109 System.Collections namespace 1160, 1185 System.Data namespace 26, 920 System.Data.OleDb namespace 920 System.Data.Sqlclient namespace 920 System.Drawing namespace 685, 686, 712 686 System.Drawing.Drawing2D namespace 685, 715 System.GC.WaitForPendingFinalizers method 317 System.IO namespace 760 Index System.Net namespace 1067 System.Runtime.Serialization.Formatters.Binary namespace 782 System.Text namespace 633 System.Text.RegularExpressions namespace 633, 669 System.Threading namespace 591 System.Web namespace 957 System.Web.Security namespace 1020 System.Web.UI namespace 957 System.Web.UI.WebControls namespace 957 System.Windows.Forms 69 System.Windows.Forms namespace 68, 69, 124, 147, 478 System.Xml namespace 847 System.Xml.Xsl namespace 882 SystemException class 448, 463 T tab 68 tab character 62 tab order 1225 tab stop 68, 1225 Tabbed pages in Visual Studio NET 560 tabbed window 37 TabControl class 560 TabControl properties and events 561 TabControl used to display various font settings 562 TabControl with TabPages example 561 TabControl with TabPages example 561 TabControl, adding a TabPage 561 TabCount property of class TabControl 562 TabIndex property of class Control 485, 1230 table 897, 1231, 1232, 1375, 1398, 1431 table body 1459 table column 897 www.elsolucionario.net table data 1459 table element 265, 1399, 1459 table head element 1459 table in which record will be updated 918, 919 table of values 265 Table optimized for screen reading using attribute headers 1232 table row 1459 TableDisplay.cs 921 TabPage class 560 TabPage, add to TabControl 560 TabPage, using radio buttons 565 TabPages added to a TabControl 561 TabPages added to a TabControl 561 TabPages property of class TabControl 562 TabStop property 485 TabStop property of class Control 1230 tabular format 240 tag 950, 1338, 1375 tag name 1015 tag prefix 955 tail of a queue 1165 Tan method of class Math 182 tangent 182 target = "_blank" 1483 target = "_self" 1483 target = "_top" 1483 target ="_blank" 1422 target ="_parent" 1422 target ="_self" 1422 target ="_top" 1422 targetNamespace attribute 873 targetSessions attribute 1249 task Task List window 1312 tbody (table body) element 1400, 1459 TCP (Transmission Control Protocol) 1108 TCP/IP (Transmission Control Protocol/Internet Protocol) 14 TcpClient class 1110 TcpListener class 1108, 1109 td element 1459 TEI (Text Encoding Initiative) 16 Index telephone system 1120 TemperatureServer Web service 1082 TemperatureServer.asmx.cs 1082 TempFileCollection class 852 temporary data storage 757 temporary value 114 termDigits attribute 1247, 1249 terminal terminating right brace (}) of a block 213 termination 249 termination housekeeping 312 termination model of exception handling 442 termination phase 112 termination test 222 ternary operator (?:) 101 Test2 demonstrates polymorphism in PointCircle-Cylinder hierarchy 400 Test3 uses interfaces to demonstrate polymorphism in Point-Circle-Cylinder hierarchy 424 Testing and Debugging Tip 12 Testing class Cylinder 370 text 736 text-based browser 1442 text box 1465 Text constant of enumeration XmlNodeType 849 text editor 64, 633, 1376, 1431 text element 1243, 1247 Text Encoding Initiative (TEI) 16 text field 69, 71 text file 847 Text property 48, 485, 493 Text property of class LinkLabel 531 Text property of class MenuItem 525 Text property of class TreeNode 549 TextAlign property 485 textarea 1406 textarea element 1408, 1465, 1466 text-based browser 1384, 1400 TextBox class 260, 475, 476, 488 1563 TextBox properties and events 489 TextChanged event 489 TextReader class 760 text-to-speech (TTS) 1225, 1243, 1258 text-to-speech engine 736 TextToSpeech.cs 1226 TextureBrush class 690, 711, 715 TextWriter class 760 tfoot (table foot) element 1460 th (table header column) element 1232, 1459 The Diversity Directory 1297 The National Business and Disability Council (NBDC) 1297 thead (table head) tag 1400, 1459 this keyword 309, 313 this reference demonstration 311 this reference used implicitly and explicitly to enable an object to manipulate its own data and invoke its own method 310 Thompson, Ken Thread class 592, 1118 Thread life cycle 593 thread life cycle 593 thread of execution 591 Examples Thread-priority scheduling 596 Thread-priority scheduling 596 thread-priority scheduling 596 thread scheduling 606 thread state 592 thread state Dead 593 thread state Ready 593 thread state Runnable 593 thread state Running 593, 596 thread state Started 593 thread state Stopped 593, 594, 627 thread state Suspended 594 thread state Unstarted 593 thread state WaitSleepJoin 594, 595, 600 thread synchronization 599 ThreadAbortException 593 ThreadPriority enumeration 594, 595 Threads sleeping and printing 596 threads sleeping and printing 596 www.elsolucionario.net ThreadStart delegate 593, 596, 599 ThreadTester.cs 596 three-dimensional application 717 Three-tier architecture 952 throughput throw an exception 442, 446 throw point 442, 457 throw statement 451 Tick event of class Timer 580, 722 TicketReservation.aspx 1078 TicketReservation.aspx.cs 1079 Tic-Tac-Toe 1125 tightly packed binary tree 1177 TileHorizontal value in LayoutMdi enumeration 570 TileVertical value in LayoutMdi enumeration 570 time and date 580 Time class 22 Time1 abstract data type represents the time in 24hour format 283 Time1.cs 283 timeout 1258 timeout attribute of prompt element 1241 Timeout property of HttpSessionState class 1003 timer 580 Timer class 720 timesharing 5, 11 timeslicing 594 title element 881 title bar 37, 46, 52, 1434 title bar string 147 title bar, MDI parent and child 567 title element 950, 1234, 1378, 1434 title of a document 1433 titles table of books database 898, 901 tlb file 1368 ToggleKeys 1256 ToInt32 method of Convert 445, 446 ToLongTimeString method of structure ToLongTimeString 580 1564 ToLower method of class Char 663 ToLower method of class String 648, 649 Tool tip demonstration 39 toolbar 38 toolbar icon 38 Toolbox 20, 963 Toolbox window 41 Tools menu 38 tooltip 39, 974 top 109, 116 top-down, stepwise refinement 3, 21, 109, 112, 116 top tier 953 ToString method of class Decimal 413 ToString method of class String 461, 650 ToString method of class StringBuilder 652, 654 ToString method of Object 349 ToUpper method of class Char 663 ToUpper method of class String 648, 649 Towers of Hanoi 234 tr (table row) element 1400, 1459 Trace class 1028 Warn method 1028 Write property 1028 trace element in a Web.config file 1028 Trace property 26 trace property of Page class 1028 trace.axd file 1028 TraceContext class 1028 tracing 1027 Tracing enabled on a page 1029 Tracing information for a project 1029 track 1250 tracking customers 987 trademark symbol 28 transaction-processing system 794 812, 816 transfer of control 96 Transform method of XslTransform 882 TransformTest.cs 882 TranslateTransform method of class Graphics 715 translation step Index translator program Transmission Control Protocol/ Internet Protocol (TCP/IP) 14 trapezoid 344 traverse a tree 1176 tree 26, 547, 1168 tree structure 841 Tree structure for article.xml 847 Tree structure for Fig 18.1 847 Tree.cs 416 TreeNode class 549 TreeNode Editor 550 TreeNode Editor in VS NET 547 TreeNode properties and methods 549 TreeTest.cs 1182 TreeTest.java 1174 TreeView 521 TreeView class 547 TreeView displaying a sample tree 548 TreeView properties and events 548 TreeView used to display directories 550 TreeViewDirectoryStructureTest.cs 550 trigger an event 476 trigonometric calculation 21 trigonometric cosine 182 trigonometric sine 182 trigonometric tangent 182 trillion-instruction-per-second computers Trim method of class String 648 trim method of string 858 TrimToSize method of class ArrayList 1189, 1194 true 100 truncate 77, 114 truth 80 truth table 161 truth table for operator ! (logical NOT) 163 truth table for the && (logical AND) operator 161 try block 442, 446 try block expires 442 TTS (text-to-speech) engine 1243 Turtle Graphics 277 Tutor.cs 1098 www.elsolucionario.net two-dimensional data structure 1168 two-dimensional shape 685 two’s complement 1284 twos position 1277 type = "hidden" 1405 type = "password" 1409 type = "radio" 1409 type = "reset" 1406 type = "submit" 1406 type = "text" 1406 type attribute 873, 1405, 1450, 1465 Type class 1230 type of a variable 75 typesetting system 633 U U+yyyy (Unicode notational convention) 1352 UDDI (Universal Description, Discovery, and Integration) 1054 UDP 1108 UdpClient class 1120 uint primitive data type 196 uint promotions 194 ul element 1447 ulong primitive data type 196 ulong promotions 194 unambiguous (Unicode design basis) 1351 unary cast operator 114 unary operator 115, 163 UnauthorizedAccessException class 552 unbounded value 873 unchecked context 466 unchecked operator 466 Underline member of enumeration FontStyle 697 Underline property of class Font 696 underscore (_) 62 undo 38 uneditable text or icons 476 Unicode 73, 196, 197 Unicode character 758 Unicode character set 93, 634 Unicode Consortium 1351 Unicode Standard design basis 28, 1350, 1351 Uniform Resource Identifier (URI) 845 Index uninitialized local variable 109 unique class name 328 Univac 1108 14 universal (Unicode design principle) 1351 universal data access 17 Universal Description, Discovery, and Integration (UDDI) 1054 Universal Resource Locator (URL) 845 universal time format 284, 286, 288 UNIX operating system 5, 6, Unload event 958 unmanaged resource 958 unnecessary parentheses 79 unordered list element (ul) 1388, 1389, 1447 Unstarted thread state 593 unstructured flowchart 170 Unsynchronized.cs 602 UPDATE 905, 918 UPDATE query 1075 UpdateCommand property of OleDbAdapter 927 822 updating a database 1405 upper-left corner of a GUI component 686 uppercase 62 uppercase letter 73 URI (Uniform Resource Identifier) 845 URL (Uniform Resource Locator) 950, 987 URL (Universal Resource Locator) 845 usemap attribute 1478 UseMnemonic property of class LinkLabel 531 user agent 1217, 1263 user control 1015 User Datagram Protocol (UDP) 1108 user-defined method 180 user-defined type 282 user interface 953 user interface event 219 UserControl class 579 user-defined exception class 462 userInput of class _AgentEvents_Comman dEvent 750 ushort primitive data type 196 ushort promotions 194 1565 Using a PictureBox to display images 507 Using an abstract data type 287 Using arrays to eliminate a switch structure 245 Using CheckBoxes to change font styles 499 Using class StackInheritance 1162 Using default namespaces 846 using directive 62, 69 using elements of an array as counters 244 Using For Each/Next with an array 272 Using GroupBoxes and Panels to arrange Buttons 496 Using inheritance to create a queue 1167 Using internal hyperlinks to make pages more navigable 1413, 1473 Using meta to provide keywords and a description 1478 using operator overloading 433 Using overloaded methods 223 using parentheses to force the order of evaluation 77 Using RadioButtons to set message-window options 502 Using string indexer, Length property and CopyTo method 636 using temperature and weather data 1087 using the HugeInteger Web service 1057 Using the mouse to draw on a form 510 Using the Properties window to set a property value 127 Using the Stack class 1195 UsingArray.cs 1186 UsingExceptions.cs 452 UsingFontMetrics.cs 699 UsingFonts.cs 697 UsingHugeIntegerService.cs 1057 UsingMDI.cs 571 UsingTabs.cs 562 UTF-8 1351 UTF-16 1351 UTF-32 1351 utility method 285 \uyyyy unicode format 1356 www.elsolucionario.net V valid 865 valid identifier 62 Validate.cs 672 Validating user information using regular expressions 672 validating XML parser 865 validation service 1435 ValidationExpression property of class RegularExpressionValidator 979 ValidationTest.cs 874 validator 976 validator.w3.org 1376, 1435, 1451 validator.w3.org/fileupload.html 1435 Validators used in a Web Form that generates possible letter combinations from a phone number 977 validity 866 validity checking 298 valign = "middle" 1403 valign attribute (th) 1403, 1462 value attribute 1248, 1249, 1405, 1406, 1465 value of a variable 75 value of an attribute 1433 Value property of HttpCookie class 996, 997 Value property of ServerValidateEventArgs class 1020 value tag 1338 value types 196 VALUES 917 ValueType class 661 tag (…) 1242 var attribute 1247, 1248 variable 72, 75, 282 variable name 75 variable reference 123 variable scope 144 variable size 75 variable type 75 variable value 75 variable, in previous statement 1317 variable, modify at run time 1317 Vault.com 1293 version 879 1566 version attribute of xml declaration 1243 version parameter of xml tag 840 vertex 1478 vertical alignment formatting 1403 vertical coordinate 686 vi text editor 1376, 1431 ViaVoice 1217, 1235 video clip 591 video game 201 View menu in Internet Explorer 38, 69 View property of class ListView 554 Viewing the tracing information for a project 1029 VIEWSTATE hidden input 986 ViewStateEnabled attribute 986 virtual directory 950 virtual key code 514 virtual memory operating system 11 Visible property 485 VisitedLinkColor property of class LinkLabel 531 Visual Basic NET 19 Visual C++ NET 19 Visual Inheritance through the Form Designer 577 visual programming 20, 478 Visual Studio NET 20, 34 Visual Studio NET Class View 333 Visual Studio NET Debugger 27 Visual Studio NET environment after a new project has been created 37 Visual Studio NET-generated console application 65, 493 Visual Studio NET menu bar 38 Visual Studio NET Menu Designer 523 Visual Studio NET menu summary 38 Visual Studio NET Object Browser 333 Visual Studio accessibility guidelines 1218 Visual Studio creating and linking a virtual directory for the WebTime project folder 961 VisualInheritance.cs 575 Index VisualInheritanceTest.cs 577 vocabulary 16, 844 Voice Server SDK 1.0 1236 Voice settings window 1261 voice synthesis 1235 VoiceXML 25, 27, 1235, 1236, 1241, 1250, 1265 VoiceXML tags 1242 void return-value-type 186 volatile memory Voxeo (www.voxeo.com) 1243, 1244 Voxeo Account Manager 1244 vsdisco file extension 1057 tag 1242 W W3C (World Wide Web Consortium) 15, 27, 887, 1450 W3C host 15 W3C Recommendation 15, 872, 1431 W3C XML Schema 869 WAI (Web Accessiblity Initiative) 27, 1216 WAI Quick Tip 1216 wait element 600, 1249 Wait method of class Monitor 594, 607, 614, 615 WaitForPendingFinalizers method of class GC 317 waiting line 1146 waiting thread 615 WaitSleepJoin thread state 594, 595, 600 “walk” past end of an array 249 walk the list 1159 “warehouse” section of the computer Warn method of Trace class 1028 WAV file format 733 Web 28 Web Accessibility Initiative (WAI) 27, 1264 Web-based application development 949 Web Content Accessibility Guidelines 1.0 1216, 1218, 1231, 1235 Web Content Accessibility Guidelines 2.0 (Working Draft) 1216 www.elsolucionario.net Web control 26, 949 Web controls commonly used in ASP.NET applications 966 Web controls demonstration 967 Web Form 26, 949, 988, 999, 1027 Properties window 1028 Web Form page 949 Web Forms menu in the Toolbox 962 Web reference 1053 Web reference selection and description 1056 Web server 950, 1109, 1405, 1432, 1462 Web server/Client interaction Step 1: The GET request, GET /books/downloads.htm HTTP/1.0 951 Web service 17, 26, 1041 Web Service Description Language (WSDL) 1042 Web-service method 1041 Web service that generates random equations 1095 Web Services 328 Web services located on localhost 1056 Web site Web site using two frames: navigational and content 1420, 1480 Web user control 1015 Web.config namespace 1020, 1028 WebClient class 1085 WebControl class 957 WebControls.aspx 967 WebHire 1294 WebMethod attribute 1041, 1043, 1052 WebService attribute 1051 WebService class 1052 WebTime.aspx 953 WebTime.aspx.cs 955 WebTime.html 958 Welcome.aspx 1007 Welcome.aspx.cs 1009 Welcome1.cs 60 Welcome2.cs 67 Welcome3.cs 67 Welcome4.cs 68 well-formed document 865 WHERE 905, 906, 907, 908, 909, 911, 918, 919 Index while repetition structure 21, 98, 105, 109, 113, 114, 141, 143, 144, 167, 171 WhileCounter.cs 141 White static property of structure Color 689 whitespace character 62, 64, 650, 669 widening conversion 193 widget 475 width attribute 1383, 1441, 1442, 1459 width of text input 1406 width-to-height ratio 1442, 1383 Wiltamuth, Scott Win32 API (Windows 32-bit Application Programming Interface) window auto-hide 40 window gadget 475 window layout 38 window tab 37 Windows 2000 6, 27 Windows 32-bit Application Programming Interface (Win32 API) Windows 95/98 60 Windows application 36, 60 Windows control library 581 Windows Control Library project 771 Windows Explorer 532 Windows Form 23, 476 Windows Form Designer generated code expanded 126 Windows Form Designer generated code reflecting new property values 128 Windows Forms proxy 1364 Windows Media Player 733 Windows Media Player demonstration 733 Windows menu 38 Windows NT/2000 60 Windows Registry 1363 Windows Wave file format (WAV) 733 Windows XP WinForms 476 wire format 1043 wire protocol 1043 wireless application protocol (WAP) 1299 Wireless Markup Language (WML) 25 1567 WirelessResumes.com 1299 Wirth, Nicklaus 10 WML (Wireless Markup Language) 25 word character 669 word processor 633, 643 Wordpad 1431 Working Draft 15 WorkingSolo.com 1300 workstation World Wide Web (WWW) 3, 14, 15, 27, 475, 591 World Wide Web Consortium (W3C) 15, 27, 839, 887, 1264 Write method of class BinaryWriter 1119 Write method of class Console 66, 760 Write method of class NetworkStream 1110 Write property of Trace class 1028 WriteByte method of class NetworkStream 1110 WriteLine method 1313 WriteLine method of class Console 64, 760 WriteRandomAccessFile.cs 802 WriteXml method of DataSet 938 Writing records to random-access files 802 WSDL (Web Service Description Language) 1042 WWW (World Wide Web) 3, 14, 27 www.advantagehiring.com 1297 www.advisorteam.net/ AT/User/kcs.asp 1297 www.biztalk.com 887 www.careerpower.com 1302 www.chami.com/html-kit 1376 www.chiefmonster.com 1301 www.deitel.com 2, 3, 29, 1376, 1439 www.elsop.com/wrc/ h_comput.htm 29 www.etest.net 1297 www.ework.com 1300 www.execunet.com 1301 www.jasc.com 1441 www.elsolucionario.net www.jobfind.com 1295 www.jobtrak.com 1298 www.microsoft.com 29 www.microsoft.com/net 18 www.mindexchange.com 1297 www.nationjob.com 1301 www.netvalley.com/intval.html 29 www.prenhall.com/deitel 3, 29 www.recruitsoft.com/ process 1297 www.review.com 1302 www.sixfigurejobs.com 1301 www.unicode.org 1353 www.voxeo.com (Voxeo) 1243, 1244 www.w3.org 15, 29 www.w3.org/2000/10/ XMLSchema 873 www.w3.org/History.html 29 www.w3.org/markup 1431 www.w3.org/TR/xhtml1 1451 www.w3.org/XML/Schema 872 www.w3.org/XML/Schema.html 868 www.w3schools.com/xhtml/default.asp 1451 www.webhire.com 1294 www.xhtml.org 1451 www.yahoo.com 1381 X x-axis 686 x-coordinate 686 Xalan XSLT processor 877 XBRL (Extensible Business Reporting Language) 25 Xerces parser 841 XHTML (Extensible HyperText Markup Language) 15, 25, 27, 1431 XHTML comment 1432 XHTML documentation of class Circle 1340 XHTML documentation of method Area method of class Circle 1341 XHTML form 1462 1568 XHTML Recommendation 1264, 1451 XHTML table without accessibility modifications 1231 XLink (Extensible Linking Language) 16 XML (Extensible Markup Language) 15, 20, 25, 839, 1042 XML comment 1330 XML declaration 840 XML document containing book information 878 XML document referencing its associated DTD 867 XML document that conforms to a Microsoft Schema document 870 XML document that conforms to W3C XML Schema 872 XML document that describes various sports 864 XML document that does not conform to XSD schema 876 XML documentation 1331 XML documentation comment 1330 XML documentation generated by Visual Studio NET 1341 XML file containing AdRotator information 974 xml file extension 841 XML file that does not conform to the Schema in Fig 18.17 876 XML GL (XML Guidelines) 1235 XML Guidelines (XML GL) 1235 xml namespace 844 XML namespaces demonstration 844 XML node 841, 847 XML parser 841 XML processors 841 XML root 841 XML Schema 25, 844, 870, 872 XML serialization 1092 XML tag 840 XML to mark up a business letter 842 XML used to mark up an article 839 XML Validator 868 XML Validator displaying an error message 870 XML Validator used to validate an XML document 869 Index XML.com 888 XML.org 887 XML4J parser 841 XML-Data Reduced 870 XmlDeclaration constant of enumeration XmlNodeType 849 XmlDom.cs 851 XmlNodeReader class 848 XmlNodeReader used to iterate through an XML document 848 XmlNodeType enumeration 849 xmlns attribute 845, 847 XmlReader class 848 XmlReaderTest.cs 848 XmlValidatingReader class 873 XMLWriter.cs 939 Xor method of class BitArray 1496, 1508 XPath expression 857, 858, 890 XPath expressions and descriptions 865 XPathNavigator class used to navigate selected nodes 858 XPathNodeIterator Class 858 xsd extension 872 XSD Schema document to which bookxsd.xml conforms 872 xsd:date 873 xsd:double 873 xsd:int 873 xsd:string 873 xsd:time 873 xsl template 879 XSL (Extensible Stylesheet Language) 16, 844, 877 XSL document that transforms sorting.xml into XHTML 879 XSL specification 887 XSL style sheet applied to an XML document 882 XSL variable 882 XSLT (Extensible Stylesheet Language Transformation) 25 XSLT processor 877 XsltArgumentList class 882 XslTransform class 882 x-y coordinate 1418, 1478 www.elsolucionario.net Y y-axis 686 y-coordinate 686 Yahoo! 1295 yellow 688 yellow arrow 1315 Yellow static property of structure Color 689 YesNo 148 YesNoCancel 148 Z zero-based counting 143, 242 zeroth element 238 ... additional button Custom control creation Programmer-defined control that displays the current time Custom-control creation Project properties dialog Custom control added to the ToolBox Custom control... December 2002 We also plan to publish Visual C+ + NET How to Program in July 2002, followed by Advanced Visual C+ + NET How to Program in July 2003 Advanced C# How to Program C# How to Program covers... introductory through intermediate-level C# programming topics, as well as core programming fundamentals By contrast, our upcoming textbook Ad- www.elsolucionario.net Preface L vanced C# How to Program

Ngày đăng: 16/10/2021, 15:33

Xem thêm:

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN