Problem solving with C++. ([2018])
- Record Type:
- Book
- Title:
- Problem solving with C++. ([2018])
- Main Title:
- Problem solving with C++
- Further Information:
- Note: Walter J. Savitch ; contributor, Kenrick Mock.
- Authors:
- Savitch, Walter J, 1943-2021
Mock, Kenrick - Contents:
- Cover; Inside Front Cover; Title Page; Copyright Page; Preface; Acknowledgments; Brief Contents; Contents; Chapter 1 Introduction to Computers and C++ Programming; 1.1 COMPUTER SYSTEMS; Hardware; Software; High-Level Languages; Compilers; History Note; 1.2 PROGRAMMING AND PROBLEM-SOLVING; Algorithms; Program Design; Object-Oriented Programming; The Software Life Cycle; 1.3 INTRODUCTION TO C++; Origins of the C++ Language; A Sample C++ Program; Pitfall: Using the Wrong Slash in \n; Programming Tip: Input and Output Syntax; Layout of a Simple C++ Program. Pitfall: Putting a Space Before the include File NameCompiling and Running a C++ Program; Pitfall: Compiling a C++11 Program; Programming Tip: Getting Your Program to Run; 1.4 TESTING AND DEBUGGING; Kinds of Program Errors; Pitfall: Assuming Your Program Is Correct; Chapter Summary; Answers to Self-Test Exercises; Practice Programs; Programming Projects; Chapter 2 C++ Basics; 2.1 VARIABLES AND ASSIGNMENTS; Variables; Names: Identifiers; Variable Declarations; Assignment Statements; Pitfall: Uninitialized Variables; Programming Tip: Use Meaningful Names; 2.2 INPUT AND OUTPUT; Output Using cout. Includes Directives and NamespacesEscape Sequences; Programming Tip: End Each Program with a \n or end1; Formatting for Numbers with a Decimal Point; Input Using cin; Designing Input and Output; Programming Tip: Line Breaks in I/O; 2.3 DATA TYPES AND EXPRESSIONS; The Types int and double; Other Number Types; C++11 Types; The Type char;Cover; Inside Front Cover; Title Page; Copyright Page; Preface; Acknowledgments; Brief Contents; Contents; Chapter 1 Introduction to Computers and C++ Programming; 1.1 COMPUTER SYSTEMS; Hardware; Software; High-Level Languages; Compilers; History Note; 1.2 PROGRAMMING AND PROBLEM-SOLVING; Algorithms; Program Design; Object-Oriented Programming; The Software Life Cycle; 1.3 INTRODUCTION TO C++; Origins of the C++ Language; A Sample C++ Program; Pitfall: Using the Wrong Slash in \n; Programming Tip: Input and Output Syntax; Layout of a Simple C++ Program. Pitfall: Putting a Space Before the include File NameCompiling and Running a C++ Program; Pitfall: Compiling a C++11 Program; Programming Tip: Getting Your Program to Run; 1.4 TESTING AND DEBUGGING; Kinds of Program Errors; Pitfall: Assuming Your Program Is Correct; Chapter Summary; Answers to Self-Test Exercises; Practice Programs; Programming Projects; Chapter 2 C++ Basics; 2.1 VARIABLES AND ASSIGNMENTS; Variables; Names: Identifiers; Variable Declarations; Assignment Statements; Pitfall: Uninitialized Variables; Programming Tip: Use Meaningful Names; 2.2 INPUT AND OUTPUT; Output Using cout. Includes Directives and NamespacesEscape Sequences; Programming Tip: End Each Program with a \n or end1; Formatting for Numbers with a Decimal Point; Input Using cin; Designing Input and Output; Programming Tip: Line Breaks in I/O; 2.3 DATA TYPES AND EXPRESSIONS; The Types int and double; Other Number Types; C++11 Types; The Type char; The Type bool; Introduction to the Class string; Type Compatibilities; Arithmetic Operators and Expressions; Pitfall: Whole Numbers in Division; More Assignment Statements; 2.4 SIMPLE FLOW OF CONTROL; A Simple Branching Mechanism. Pitfall: Strings of InequalitiesPitfall: Using = in place of ==; Compound Statements; Simple Loop Mechanisms; Increment and Decrement Operators; Programming Example: Charge Card Balance; Pitfall: Infinite Loops; 2.5 PROGRAM STYLE; Indenting; Comments; Naming Constants; Chapter Summary; Answers to Self-Test Exercises; Practice Programs; Programming Projects; Chapter 3 More Flow of Control; 3.1 USING BOOLEAN EXPRESSIONS; Evaluating Boolean Expressions; Pitfall: Boolean Expressions Convert to int Values; Enumeration Types (Optional); 3.2 MULTIWAY BRANCHES; Nested Statements. Programming Tip: Use Braces in Nested StatementsMultiway if-else Statements; Programming Example: State Income Tax; The switch Statement; Pitfall: Forgetting a break in a switch Statement; Using switch Statements for Menus; Blocks; Pitfall: Inadvertent Local Variables; 3.3 MORE ABOUT C++ LOOP STATEMENTS; The while Statements Reviewed; Increment and Decrement Operators Revisited; The for Statement; Pitfall: Extra Semicolon in a for Statement; What Kind of Loop to Use; Pitfall: Uninitialized Variables and Infinite Loops; The break Statement; Pitfall: The break Statement in Nested Loops. … (more)
- Edition:
- Tenth edition, global edition
- Publisher Details:
- Harlow, United Kingdom : Pearson Education Limited
- Publication Date:
- 2018
- Extent:
- 1 online resource
- Subjects:
- 005.13/3
C++ (Computer program language)
Problem solving
Problem Solving
C++ (Langage de programmation)
Résolution de problème
C++ (Computer program language)
Problem solving
Electronic books - Languages:
- English
- ISBNs:
- 9781292222868
1292222867 - Related ISBNs:
- 1292222824
9781292222820 - Notes:
- Note: Online resource; title from digital title page (viewed on January 22, 2019).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.725761
- Ingest File:
- 14_049.xml