Programming ( Principles And Practice Using C++)

By (author) Stroustrup Bjarne

*Due to the high demand, this last copy may no longer be available at the time the order is being processed.

Ships between 2 and 4 days
By (author) Stroustrup Bjarne
Description:

An Introduction to Programming by the Inventor of C++

Programming: Principles and Practice Using C++, Third Edition, will help anyone who is willing to work hard learn the fundamental principles of programming and develop the practical skills needed for programming in the real world. Previous editions have been used successfully by many thousands of students. This revised and updated edition

  • Assumes that your aim is to eventually write programs that are good enough for others to use and maintain
  • Focuses on fundamental concepts and techniques, rather than on obscure language-technical details
  • Is an introduction to programming in general, including procedural, object-oriented, and generic programming, rather than just an introduction to a programming language
  • Covers both contemporary high-level techniques and the lower-level techniques needed for efficient use of hardware
  • Will give you a solid foundation for writing useful, correct, type-safe, maintainable, and efficient code
  • Is primarily designed for people who have never programmed before, but even seasoned programmers have found previous editions useful as an introduction to more effective concepts and techniques
  • Covers a wide range of essential concepts, design and programming techniques, language features, and libraries
  • Uses contemporary C++ (C++20 and C++23)
  • Covers the design and use of both built-in types and user-defi ned types, complete with input, output, computation, and simple graphics/GUI
  • Offers an introduction to the C++ standard library containers and algorithms

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.


Table of contents:

Preface ix

Chapter 0: Notes to the Reader 1
0.1 The structure of this book 2
0.2 A philosophy of teaching and learning 5
0.3 ISO standard C++ 8
0.4 PPP support 11
0.5 Author biography 13
0.6 Bibliography 13

Part I: The Basics

Chapter 1: Hello, World! 17
1.1 Programs 18
1.2 The classic first program 18
1.3 Compilation 21
1.4 Linking 23
1.5 Programming environments 24

Chapter 2: Objects, Types, and Values 29
2.1 Input 30
2.2 Variables 32
2.3 Input and type 33
2.4 Operations and operators 34
2.5 Assignment and initialization 36
2.6 Names 40
2.7 Types and objects 42
2.8 Type safety 43
2.9 Conversions 44
2.10 Type deduction: auto 46

Chapter 3 Computation 51
3.1 Computation 52
3.2 Objectives and tools 53
3.3 Expressions 55
3.4 Statements 58
3.5 Functions 68
3.6 vector 71
3.7 Language features 77

Chapter 4: Errors! 83
4.1 Introduction 84
4.2 Sources of errors 85
4.3 Compile-time errors 86
4.4 Link-time errors 88
4.5 Run-time errors 89
4.6 Exceptions 94
4.7 Avoiding and finding errors 99

Chapter 5: Writing a Program 115
5.1 A problem 116
5.2 Thinking about the problem 116
5.3 Back to the calculator! 119
5.4 Back to the drawing board 126
5.5 Turning a grammar into code 130
5.6 Trying the first version 136
5.7 Trying the second version 140
5.8 Token streams 142
5.9 Program structure 146

Chapter 6: Completing a Program 151
6.1 Introduction 152
6.2 Input and output 152
6.3 Error handling 154
6.4 Negative numbers 156
6.5 Remainder: % 157
6.6 Cleaning up the code 158
6.7 Recovering from errors164
6.8 Variables 167

Chapter 7: Technicalities: Functions, etc. 179

More Information
Author By (author) Stroustrup Bjarne
Date Of Publication Sep 9, 2024
EAN 9780138308681
Series Number SUM25
Contributors Stroustrup Bjarne
Publisher Addison Wesley
Edition 3
Languages English
Country of Publication Lebanon
Width 188 mm
Height 231 mm
Thickness 29 mm
Product Forms Paperback / Softback
Availability in Stores AUB Bookstore
Weight 1.25 Kg
Write Your Own Review
Only registered users can write reviews. Please Sign in or create an account