Introduction to programming with C++:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Upper Saddle River, NJ [u.a.]
Pearson
2014
|
Ausgabe: | 3. ed., internat. ed. |
Schriftenreihe: | Always learning
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | Literaturangaben |
Beschreibung: | 709 S. Ill., graph. Darst. |
ISBN: | 0273793241 9780273793243 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV041044026 | ||
003 | DE-604 | ||
005 | 20130808 | ||
007 | t | ||
008 | 130524s2014 ad|| |||| 00||| eng d | ||
020 | |a 0273793241 |9 0-273-79324-1 | ||
020 | |a 9780273793243 |9 978-0-273-79324-3 | ||
035 | |a (OCoLC)844296483 | ||
035 | |a (DE-599)BVBBV041044026 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
049 | |a DE-1050 |a DE-83 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Liang, Y. Daniel |e Verfasser |4 aut | |
245 | 1 | 0 | |a Introduction to programming with C++ |c Y. Daniel Liang |
246 | 1 | 3 | |a Introduction to programming with C-plus-plus |
250 | |a 3. ed., internat. ed. | ||
264 | 1 | |a Upper Saddle River, NJ [u.a.] |b Pearson |c 2014 | |
300 | |a 709 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Always learning | |
500 | |a Literaturangaben | ||
650 | 0 | 7 | |a C++ |0 (DE-588)4193909-8 |2 gnd |9 rswk-swf |
655 | 7 | |0 (DE-588)4151278-9 |a Einführung |2 gnd-content | |
689 | 0 | 0 | |a C++ |0 (DE-588)4193909-8 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=026021386&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-026021386 |
Datensatz im Suchindex
_version_ | 1804150406792609792 |
---|---|
adam_text | Titel: Introduction to programming with C++
Autor: Liang, Yong Daniel
Jahr: 2014
CONTENTS
Chapter 1 Introduction to Computers,
Programs, and C++ 21
i.i Introduction 22
1.2 What Is a Computer? 22
1.3 Programming Languages 29
1.4 Operating Systems 32
1.5 History of C++ 33
1.6 A Simple C++ Program 34
1.7 C++ Program-Development Cycle 38
1.8 Programming Style and Documentation 40
1.9 Programming Errors 41
Chapter 2 Elementary Programming 49
2.1 Introduction 50
2.2 Writing a Simple Program 50
2.3 Reading Input from the Keyboard 52
2.4 Identifiers 55
2.5 Variables 55
2.6 Assignment Statements and Assignment
Expressions 57
2.7 Named Constants 59
2.8 Numeric Data Types and Operations 60
2.9 Evaluating Expressions and Operator Precedence 65
2.10 Case Study: Displaying the Current Time 67
2.11 Augmented Assignment Operators 69
2.12 Increment and Decrement Operators 70
2.13 Numeric Type Conversions 72
2.14 Software Development Process 75
2.15 Case Study: Counting Monetary Units 79
2.16 Common Errors 81
Chapter 3 Selections 91
3.1 Introduction 92
3.2 The bool Data Type 92
3.3 i f Statements 93
3.4 Two-Way i f-el se Statements 96
3.5 Nested i f and Multi-Way i f-el se Statements 97
3.6 Common Errors and Pitfalls 99
3.7 Case Study: Computing Body Mass Index 104
3.8 Case Study: Computing Taxes 106
3.9 Generating Random Numbers 109
3.10 Logical Operators 111
3.11 Case Study: Determining Leap Year 114
3.12 Case Study: Lottery 115
3.13 swi tch Statements 117
3.14 Conditional Expressions 121
3.15 Operator Precedence and Associativity 122
3.16 Debugging 124
14
Contents 15
Chapter 4 Mathematical Functions,
Characters, and Strings 137
4.1 Introduction 138
4.2 Mathematical Functions 138
4.3 Character Data Type and Operations 142
4.4 Case Study: Generating Random Characters 146
4.5 Case Study: Guessing Birthdays 148
4.6 Character Functions 151
4.7 Case Study: Converting a Hexadecimal Digit
to a Decimal Value 153
4.8 The string Type 154
4.9 Case Study: Revising the Lottery Program Using Strings 158
4.10 Formatting Console Output 160
4.11 Simple File Input and Output 164
Chapter 5 Loops 175
5.1 Introduction 176
5.2 The while Loop 176
5.3 The do-while Loop 188
5.4 The for Loop 191
5.5 Which Loop to Use? 194
5.6 Nested Loops 196
5.7 Minimizing Numeric Errors 198
5.8 Case Studies 199
5.9 Keywords break and continue 205
5.10 Case Study: Checking Palindromes 208
5.11 Case Study: Displaying Prime Numbers 210
Chapter 6 Functions 227
6.1 Introduction 228
6.2 Defining a Function 229
6.3 Calling a Function 230
6.4 void Functions 232
6.5 Passing Arguments by Value 235
6.6 Modularizing Code 236
6.7 Overloading Functions 238
6.8 Function Prototypes 241
6.9 Default Arguments 243
6.10 Inline Functions 244
6.11 Local, Global, and Static Local Variables 245
6.12 Passing Arguments by Reference 250
6.13 Constant Reference Parameters 259
6.14 Case Study: Converting Hexadecimals to Decimals 259
6.15 Function Abstraction and Stepwise Refinement 262
Chapter 7 Single-Dimensional Arrays
and C-Strings 285
7.1 Introduction 286
7.2 Array Basics 287
7.3 Problem: Lotto Numbers 293
16 Contents
7.4 Problem: Deck of Cards 296
7.5 Passing Arrays to Functions 298
7.6 Preventing Changes of Array Arguments
in Functions 300
7.7 Returning Arrays from Functions 301
7.8 Problem: Counting the Occurrences of Each Letter 304
7.9 Searching Arrays 306
7.10 Sorting Arrays 310
7.11 C-Strings 312
Chapter 8 Multidimensional Arrays 329
8.1 Introduction 330
8.2 Declaring Two-Dimensional Arrays 330
8.3 Processing Two-Dimensional Arrays 331
8.4 Passing Two-Dimensional Arrays to Functions 334
8.5 Problem: Grading a Multiple-Choice Test 335
8.6 Problem: Finding a Closest Pair 337
8.7 Problem: Sudoku 339
8.8 Multidimensional Arrays 342
Chapter 9 Objects and Classes 36i
9.1 Introduction 362
9.2 Defining Classes for Objects 362
9.3 Example: Defining Classes and Creating Objects 364
9.4 Constructors 367
9.5 Constructing and Using Objects 368
9.6 Separating Class Definition from Implementation 371
9.7 Preventing Multiple Inclusions 374
9.8 Inline Functions in Classes 375
9.9 Data Field Encapsulation 376
9.10 The Scope of Variables 379
9.11 Class Abstraction and Encapsulation 381
Chapter 10 Object-Oriented Thinking 391
10.1 Introduction 392
10.2 The string Class 392
10.3 Passing Objects to Functions 401
10.4 Array of Objects 404
10.5 Instance and Static Members 406
10.6 Constant Member Functions 410
10.7 Thinking in Objects 412
10.8 Object Composition 418
10.9 Case Study: The StackOfIntegers Class 420
10.10 Class Design Guidelines 422
Chapter 11 Pointers and Dynamic
Memory Management 431
11.1 Introduction 432
11.2 Pointer Basics 432
11.3 Defining Synonymous Types Using
the typedef Keyword 437
11.4 Using const with Pointers 438
11.5 Arrays and Pointers 439
11.6 Passing Pointer Arguments in a Function Call 442
Contents 17
11.7 Returning a Pointer from Functions 446
11.8 Useful Array Functions 447
11.9 Dynamic Persistent Memory Allocation 449
11.10 Creating and Accessing Dynamic Objects 453
ll.il The thi s Pointer 455
11.12 Destructors 456
11.13 Case Study: The Course Class 459
1 1.14 Copy Constructors 462
1 1.15 Customizing Copy Constructors 465
Chapter 12 Templates, Vectors, and Stacks 475
12.1 Introduction 476
12.2 Templates Basics 476
12.3 Example: A Generic Sort 480
12.4 Class Templates 482
12.5 Improving the Stack Class 489
12.6 The C++ vector Class 491
12.7 Replacing Arrays Using the vector Class 494
12.8 Case Study: Evaluating Expressions 497
Chapter 13 File Input and Output 511
13.1 Introduction 512
13.2 Text I/O 512
13.3 Formatting Output 518
13.4 Functions: getline, get, and put 519
13.5 fstream and File Open Modes 522
13.6 Testing Stream States 524
13.7 Binary I/O 526
13.8 Random Access File 533
13.9 Updating Files 536
Chapter 14 Operator Overloading 543
14.1 Introduction 544
14.2 The Rati onal Class 544
14.3 Operator Functions 550
14-4 Overloading the Subscript Operator [] 552
14.5 Overloading Augmented Assignment Operators 554
14.6 Overloading the Unary Operators 555
14.7 Overloading the ++ and — Operators 555
14.8 friend Functions and friend Classes 557
14.9 Overloading the and » Operators 559
14.10 Automatic Type Conversions 561
14.11 Defining Nonmember Functions for
Overloading Operators 562
14.12 The Rational Class with Overloaded
Function Operators 563
14-13 Overloading the = Operators 571
Chapter 15 Inheritance and Polymorphism 579
15.1 Introduction 580
15.2 Base Classes and Derived Classes 580
15.3 Generic Programming 588
15.4 Constructors and Destructors 589
15.5 Redefining Functions 594
15.6 Polymorphism 595
18 Contents
15.7 Virtual Functions and Dynamic Binding 596
15.8 The protected Keyword 600
15.9 Abstract Classes and Pure Virtual Functions 601
15.10 Casting: static_cast versus dynamic_cast 609
Chapter 16 Exception Handling 617
16.1 Introduction 618
16.2 Exception-Handling Overview 618
16.3 Exception-Handling Advantages 621
16.4 Exception Classes 623
16.5 Custom Exception Classes 627
16.6 Multiple Catches 632
16.7 Exception Propagation 637
16.8 Rethrowing Exceptions 638
16.9 Exception Specification 640
16.10 When to Use Exceptions 641
Chapter 17 Recursion 645
17.1 Introduction 646
17.2 Example: Factorials 646
17.3 Case Study: Fibonacci Numbers 650
17.4 Problem Solving Using Recursion 653
17.5 Recursive Helper Functions 655
17.6 Towers of Hanoi 658
17.7 Eight Queens 662
17.8 Recursion versus Iteration 665
17.9 Tail Recursion 665
The following bonus chapters are on the book s Companion Website at
www.pcarsonintcrnationaleditions.com/liang.
Chapter 18 Developing Efficient Algorithms is-i
Chapter 19 Sorting ip-i
Chapter 20 Linked Lists, Queues,
and Priority Queues :o i
Chapter 21 Binary Search Trees 21-1
Chapter 22 STL Containers 22-1
Chapter 23 STL Algorilhms
Chapter 24 Graphs and Applications 24-1
Chapter 25 Weighted Graphs and Applications 25-1
Chapter 26 AVL Trees and Splay Trees
2t -l
Appendixes
Appendix A C++ Keywords
Appendix B The ASCII Character Set
Appendix C Operator Precedence Chart
Appendix D Number Systems
Appendix E Bitwise Operations
Contents 19
673
675
677
679
683
Index
Credit
685
709
|
any_adam_object | 1 |
author | Liang, Y. Daniel |
author_facet | Liang, Y. Daniel |
author_role | aut |
author_sort | Liang, Y. Daniel |
author_variant | y d l yd ydl |
building | Verbundindex |
bvnumber | BV041044026 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)844296483 (DE-599)BVBBV041044026 |
discipline | Informatik |
edition | 3. ed., internat. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01414nam a2200385 c 4500</leader><controlfield tag="001">BV041044026</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20130808 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">130524s2014 ad|| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">0273793241</subfield><subfield code="9">0-273-79324-1</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780273793243</subfield><subfield code="9">978-0-273-79324-3</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)844296483</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV041044026</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1050</subfield><subfield code="a">DE-83</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Liang, Y. Daniel</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Introduction to programming with C++</subfield><subfield code="c">Y. Daniel Liang</subfield></datafield><datafield tag="246" ind1="1" ind2="3"><subfield code="a">Introduction to programming with C-plus-plus</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">3. ed., internat. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Upper Saddle River, NJ [u.a.]</subfield><subfield code="b">Pearson</subfield><subfield code="c">2014</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">709 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Always learning</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Literaturangaben</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">C++</subfield><subfield code="0">(DE-588)4193909-8</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="655" ind1=" " ind2="7"><subfield code="0">(DE-588)4151278-9</subfield><subfield code="a">Einführung</subfield><subfield code="2">gnd-content</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">C++</subfield><subfield code="0">(DE-588)4193909-8</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=026021386&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-026021386</subfield></datafield></record></collection> |
genre | (DE-588)4151278-9 Einführung gnd-content |
genre_facet | Einführung |
id | DE-604.BV041044026 |
illustrated | Illustrated |
indexdate | 2024-07-10T00:38:25Z |
institution | BVB |
isbn | 0273793241 9780273793243 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-026021386 |
oclc_num | 844296483 |
open_access_boolean | |
owner | DE-1050 DE-83 |
owner_facet | DE-1050 DE-83 |
physical | 709 S. Ill., graph. Darst. |
publishDate | 2014 |
publishDateSearch | 2014 |
publishDateSort | 2014 |
publisher | Pearson |
record_format | marc |
series2 | Always learning |
spelling | Liang, Y. Daniel Verfasser aut Introduction to programming with C++ Y. Daniel Liang Introduction to programming with C-plus-plus 3. ed., internat. ed. Upper Saddle River, NJ [u.a.] Pearson 2014 709 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier Always learning Literaturangaben C++ (DE-588)4193909-8 gnd rswk-swf (DE-588)4151278-9 Einführung gnd-content C++ (DE-588)4193909-8 s DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=026021386&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Liang, Y. Daniel Introduction to programming with C++ C++ (DE-588)4193909-8 gnd |
subject_GND | (DE-588)4193909-8 (DE-588)4151278-9 |
title | Introduction to programming with C++ |
title_alt | Introduction to programming with C-plus-plus |
title_auth | Introduction to programming with C++ |
title_exact_search | Introduction to programming with C++ |
title_full | Introduction to programming with C++ Y. Daniel Liang |
title_fullStr | Introduction to programming with C++ Y. Daniel Liang |
title_full_unstemmed | Introduction to programming with C++ Y. Daniel Liang |
title_short | Introduction to programming with C++ |
title_sort | introduction to programming with c |
topic | C++ (DE-588)4193909-8 gnd |
topic_facet | C++ Einführung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=026021386&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT liangydaniel introductiontoprogrammingwithc AT liangydaniel introductiontoprogrammingwithcplusplus |