C++ How To Program 10 th Edition. Table of Contents

Size: px
Start display at page:

Download "C++ How To Program 10 th Edition. Table of Contents"

Transcription

1 C++ How To Program 10 th Edition Table of Contents Preface xxiii Before You Begin xxxix 1 Introduction to Computers and C Introduction 1.2 Computers and the Internet in Industry and Research 1.3 Hardware and Software Moore s Law Computer Organization 1.4 Data Hierarchy 1.5 Machine Languages, Assembly Languages and High-Level Languages 1.6 C and C Programming Languages 1.8 Introduction to Object Technology 1.9 Typical C++ Development Environment 1.10 Test-Driving a C++ Application Compiling and Running an Application in Visual Studio 2015 for Windows Compiling and Running Using GNU C++ on Linux Compiling and Running with Xcode on Mac OS X 1.11 Operating Systems Windows A Proprietary Operating System Linux An Open-Source Operating System Apple s OS X; Apple s ios for iphone, ipad and ipod Touch Devices Google s Android 1.12 The Internet and the World Wide Web 1.13 Some Key Software Development Terminology 1.14 C++11 and C++14: The Latest C++ Versions 1.15 Boost C++ Libraries 1.16 Keeping Up to Date with Information Technologies 2 Introduction to C++ Programming, Input/Output and Operators 2.1 Introduction 2.2 First Program in C++: Printing a Line of Text 2.3 Modifying Our First C++ Program 2.4 Another C++ Program: Adding Integers 2.5 Memory Concepts 2.6 Arithmetic 2.7 Decision Making: Equality and Relational Operators 2.8 Wrap-Up 3 Introduction to Classes, Objects, Member Functions and Strings 3.1 Introduction 3.2 Test-Driving an Account Object Instantiating an Object Headers and Source-Code Files Calling Class Account s getname Member Function Inputting a string with getline Calling Class Account s setname Member Function

2 3.3 Account Class with a Data Member and Set and Get Member Functions Account Class Definition Keyword class and the Class Body Data Member name of Type string setname Member Function getname Member Function Access Specifiers private and public Account UML Class Diagram 3.4 Account Class: Initializing Objects with Constructors Defining an Account Constructor for Custom Object Initialization Initializing Account Objects When They re Created Account UML Class Diagram with a Constructor 3.5 Software Engineering with Set and Get Member Functions 3.6 Account Class with a Balance; Data Validation Data Member balance Two-Parameter Constructor with Validation deposit Member Function with Validation getbalance Member Function Manipulating Account Objects with Balances Account UML Class Diagram with a Balance and Member Functions deposit and getbalance 3.7 Wrap-Up 4 Algorithm Development and Control Statements: Part Introduction 4.2 Algorithms 4.3 Pseudocode 4.4 Control Structures Sequence Structure Selection Statements Iteration Statements Summary of Control Statements 4.5 if Single-Selection Statement 4.6 if else Double-Selection Statement Nested if else Statements Dangling-else Problem Blocks Conditional Operator (?:) 4.7 Student Class: Nested if else Statements 4.8 while Iteration Statement 4.9 Formulating Algorithms: Counter-Controlled Iteration Pseudocode Algorithm with Counter-Controlled Iteration Implementing Counter-Controlled Iteration Notes on Integer Division and Truncation Arithmetic Overflow Input Validation 4.10 Formulating Algorithms: Sentinel-Controlled Iteration Top-Down, Stepwise Refinement: The Top and First Refinement Proceeding to the Second Refinement Implementing Sentinel-Controlled Iteration Converting Between Fundamental Types Explicitly and Implicitly Formatting Floating-Point Numbers Unsigned Integers and User Input 4.11 Formulating Algorithms: Nested Control Statements

3 Problem Statement Top-Down, Stepwise Refinement: Pseudocode Representation of the Top Top-Down, Stepwise Refinement: First Refinement Top-Down, Stepwise Refinement: Second Refinement Complete Second Refinement of the Pseudocode Program That Implements the Pseudocode Algorithm Preventing Narrowing Conversions with List Initialization 4.12 Compound Assignment Operators 4.13 Increment and Decrement Operators 4.14 Fundamental Types Are Not Portable 4.15 Wrap-Up 5 Control Statements: Part 2; Logical Operators 5.1 Introduction 5.2 Essentials of Counter-Controlled Iteration 5.3 for Iteration Statement 5.4 Examples Using the for Statement 5.5 Application: Summing Even Integers 5.6 Application: Compound-Interest Calculations 5.7 Case Study: Integer-Based Monetary Calculations with Class DollarAmount Demonstrating Class DollarAmount Class DollarAmount 5.8 do while Iteration Statement 5.9 switch Multiple-Selection Statement 5.10 break and continue Statements break Statement continue Statement 5.11 Logical Operators Logical AND (&&) Operator Logical OR ( ) Operator Short-Circuit Evaluation Logical Negation (!) Operator Logical Operators Example 5.12 Confusing the Equality (==) and Assignment (=) Operators 5.13 Structured-Programming Summary 5.14 Wrap-Up 6 Functions and an Introduction to Recursion 6.1 Introduction 6.2 Program Components in C Math Library Functions 6.4 Function Prototypes 6.5 Function-Prototype and Argument-Coercion Notes Function Signatures and Function Prototypes Argument Coercion Argument-Promotion Rules and Implicit Conversions 6.6 C++ Standard Library Headers 6.7 Case Study: Random-Number Generation Rolling a Six-Sided Die Rolling a Six-Sided Die 60,000,000 Times Randomizing the Random-Number Generator with srand Seeding the Random-Number Generator with the Current Time Scaling and Shifting Random Numbers

4 6.8 Case Study: Game of Chance; Introducing Scoped enums 6.9 C++11 Random Numbers 6.10 Scope Rules 6.11 Function-Call Stack and Activation Records 6.12 Inline Functions 6.13 References and Reference Parameters 6.14 Default Arguments 6.15 Unary Scope Resolution Operator 6.16 Function Overloading 6.17 Function Templates 6.18 Recursion 6.19 Example Using Recursion: Fibonacci Series 6.20 Recursion vs. Iteration 6.21 Wrap-Up 7 Class Templates array and vector; Catching Exceptions 7.1 Introduction 7.2 Arrays 7.3 Declaring arrays 7.4 Examples Using arrays Declaring an array and Using a Loop to Initialize the array s Elements Initializing an array in a Declaration with an Initializer List Specifying an array s Size with a Constant Variable and Setting array Elements with Calculations Summing the Elements of an array Using a Bar Chart to Display array Data Graphically Using the Elements of an array as Counters Using arrays to Summarize Survey Results Static Local arrays and Automatic Local arrays 7.5 Range-Based for Statement 7.6 Case Study: Class GradeBook Using an array to Store Grades 7.7 Sorting and Searching arrays Sorting Searching Demonstrating Functions sort and binary_search 7.8 Multidimensional arrays 7.9 Case Study: Class GradeBook Using a Two-Dimensional array 7.10 Introduction to C++ Standard Library Class Template vector 7.11 Wrap-Up 8 Pointers 8.1 Introduction 8.2 Pointer Variable Declarations and Initialization Declaring Pointers Initializing Pointers Null Pointers Prior to C Pointer Operators Address (&) Operator Indirection (*) Operator Using the Address (&) and Indirection (*) Operators 8.4 Pass-by-Reference with Pointers 8.5 Built-In Arrays Declaring and Accessing a Built-In Array Initializing Built-In Arrays

5 8.5.3 Passing Built-In Arrays to Functions Declaring Built-In Array Parameters C++11: Standard Library Functions begin and end Built-In Array Limitations Built-In Arrays Sometimes Are Required 8.6 Using const with Pointers Nonconstant Pointer to Nonconstant Data Nonconstant Pointer to Constant Data Constant Pointer to Nonconstant Data Constant Pointer to Constant Data 8.7 sizeof Operator 8.8 Pointer Expressions and Pointer Arithmetic Adding Integers to and Subtracting Integers from Pointers Subtracting Pointers Pointer Assignment Cannot Dereference a void* Comparing Pointers 8.9 Relationship Between Pointers and Built-In Arrays Pointer/Offset Notation Pointer/Offset Notation with the Built-In Array s Name as the Pointer Pointer/Subscript Notation Demonstrating the Relationship Between Pointers and Built-In Arrays 8.10 Pointer-Based Strings (Optional) 8.11 Note About Smart Pointers 8.12 Wrap-Up 9 Classes: A Deeper Look 9.1 Introduction 9.2 Time Class Case Study: Separating Interface from Implementation Interface of a Class Separating the Interface from the Implementation Time Class Definition Time Class Member Functions Scope Resolution Operator (::) Including the Class Header in the Source-Code File Time Class Member Function settime and Throwing Exceptions Time Class Member Function touniversalstring and String Stream Processing Time Class Member Function tostandardstring Implicitly Inlining Member Functions Member Functions vs. Global Functions Using Class Time Object Size 9.3 Compilation and Linking Process 9.4 Class Scope and Accessing Class Members 9.5 Access Functions and Utility Functions 9.6 Time Class Case Study: Constructors with Default Arguments Constructors with Default Arguments Overloaded Constructors and C++11 Delegating Constructors 9.7 Destructors 9.8 When Constructors and Destructors Are Called Constructors and Destructors for Objects in Global Scope Constructors and Destructors for Non-static Local Objects Constructors and Destructors for static Local Objects

6 9.8.4 Demonstrating When Constructors and Destructors Are Called 9.9 Time Class Case Study: A Subtle Trap Returning a Reference or a Pointer to a private Data Member 9.10 Default Memberwise Assignment 9.11 const Objects and const Member Functions 9.12 Composition: Objects as Members of Classes 9.13 friend Functions and friend Classes 9.14 Using the this Pointer Implicitly and Explicitly Using the this Pointer to Access an Object s Data Members Using the this Pointer to Enable Cascaded Function Calls 9.15 static Class Members Motivating Classwide Data Scope and Initialization of static Data Members Accessing static Data Members Demonstrating static Data Members 9.16 Wrap-Up 10 Operator Overloading; Class string 10.1 Introduction 10.2 Using the Overloaded Operators of Standard Library Class string 10.3 Fundamentals of Operator Overloading Operator Overloading Is Not Automatic Operators That You Do Not Have to Overload Operators That Cannot Be Overloaded Rules and Restrictions on Operator Overloading 10.4 Overloading Binary Operators 10.5 Overloading the Binary Stream Insertion and Stream Extraction Operators 10.6 Overloading Unary Operators 10.7 Overloading the Increment and Decrement Operators 10.8 Case Study: A Date Class 10.9 Dynamic Memory Management Case Study: Array Class Using the Array Class Array Class Definition Operators as Member vs. Non-Member Functions Converting Between Types explicit Constructors and Conversion Operators Overloading the Function Call Operator () Wrap-Up 11 Object-Oriented Programming: Inheritance 11.1 Introduction 11.2 Base Classes and Derived Classes CommunityMember Class Hierarchy Shape Class Hierarchy 11.3 Relationship between Base and Derived Classes Creating and Using a CommissionEmployee Class Creating a BasePlusCommissionEmployee Class Without Using Inheritance Creating a CommissionEmployee BasePlusCommissionEmployee Inheritance Hierarchy CommissionEmployee BasePlusCommissionEmployee Inheritance Hierarchy Using protected Data CommissionEmployee BasePlusCommissionEmployee Inheritance Hierarchy Using private Data 11.4 Constructors and Destructors in Derived Classes 11.5 public, protected and private Inheritance 11.6 Wrap-Up

7 12 Object-Oriented Programming: Polymorphism 12.1 Introduction 12.2 Introduction to Polymorphism: Polymorphic Video Game 12.3 Relationships Among Objects in an Inheritance Hierarchy Invoking Base-Class Functions from Derived-Class Objects Aiming Derived-Class Pointers at Base-Class Objects Derived-Class Member-Function Calls via Base-Class Pointers 12.4 Virtual Functions and Virtual Destructors Why virtual Functions Are Useful Declaring virtual Functions Invoking a virtual Function Through a Base-Class Pointer or Reference Invoking a virtual Function Through an Object s Name virtual Functions in the CommissionEmployee Hierarchy virtual Destructors C++11: final Member Functions and Classes 12.5 T Type Fields and switch Statements 12.6 Abstract Classes and Pure virtual Functions Pure virtual Functions Device Drivers: Polymorphism in Operating Systems 12.7 Case Study: Payroll System Using Polymorphism Creating Abstract Base Class Employee Creating Concrete Derived Class SalariedEmployee Creating Concrete Derived Class CommissionEmployee Creating Indirect Concrete Derived Class BasePlusCommissionEmployee Demonstrating Polymorphic Processing 12.8 (Optional) Polymorphism, Virtual Functions and Dynamic Binding Under the Hood 12.9 Case Study: Payroll System Using Polymorphism and Runtime Type Information with Downcasting, dynamic_cast, typeid and type_info Wrap-Up 13 Stream Input/Output: A Deeper Look 13.1 Introduction 13.2 Streams Classic Streams vs. Standard Streams iostream Library Headers Stream Input/Output Classes and Objects 13.3 Stream Output Output of char* Variables Character Output Using Member Function put 13.4 Stream Input get and getline Member Functions istream Member Functions peek, putback and ignore Type-Safe I/O 13.5 Unformatted I/O Using read, write and gcount 13.6 Stream Manipulators: A Deeper Look Integral Stream Base: dec, oct, hex and setbase Floating-Point Precision (precision, setprecision) Field Width (width, setw) User-Defined Output Stream Manipulators 13.7 Stream Format States and Stream Manipulators Trailing Zeros and Decimal Points (showpoint) Justification (left, right and internal)

8 Padding (fill, setfill) Integral Stream Base (dec, oct, hex, showbase) Floating-Point Numbers; Scientific and Fixed Notation (scientific, fixed) Uppercase/Lowercase Control (uppercase) Specifying Boolean Format (boolalpha) Setting and Resetting the Format State via Member Function flags 13.8 Stream Error States 13.9 Tying an Output Stream to an Input Stream Wrap-Up 14 File Processing 14.1 I ntroduction 14.2 Files and Streams 14.3 Creating a Sequential File Opening a File Opening a File via the open Member Function Testing Whether a File Was Opened Successfully Overloaded bool Operator Processing Data Closing a File Sample Execution 14.4 Reading Data from a Sequential File Opening a File for Input Reading from the File File-Position Pointers Case Study: Credit Inquiry Program 14.5 C++14: Reading and Writing Quoted Text 14.6 Updating Sequential Files 14.7 Random-Access Files 14.8 Creating a Random-Access File Writing Bytes with ostream Member Function write Converting Between Pointer Types with the reinterpret_cast Operator Credit-Processing Program Opening a File for Output in Binary Mode 14.9 Writing Data Randomly to a Random-Access File Opening a File for Input and Output in Binary Mode Positioning the File-Position Pointer Reading from a Random-Access File Sequentially Case Study: A Transaction-Processing Program Object Serialization Wrap-Up 15 Standard Library Containers and Iterators 15.1 Introduction 15.2 Introduction to Containers 15.3 Introduction to Iterators 15.4 Introduction to Algorithms 15.5 Sequence Containers vector Sequence Container list Sequence Container deque Sequence Container 15.6 Associative Containers multiset Associative Container

9 set Associative Container multimap Associative Container map Associative Container 15.7 Container Adapters stack Adapter queue Adapter priority_queue Adapter 15.8 Class bitset 15.9 Wrap-Up 16 Standard Library Algorithms 16.1 Introduction 16.2 Minimum Iterator Requirements 16.3 Lambda Expressions Algorithm for_each Lambda with an Empty Introducer Lambda with a Nonempty Introducer Capturing Local Variables Lambda Return Types 16.4 Algorithms fill, fill_n, generate and generate_n equal, mismatch and lexicographical_compare remove, remove_if, remove_copy and remove_copy_if replace, replace_if, replace_copy and replace_copy_if Mathematical Algorithms Basic Searching and Sorting Algorithms swap, iter_swap and swap_ranges copy_backward, merge, unique and reverse inplace_merge, unique_copy and reverse_copy Set Operations lower_bound, upper_bound and equal_range min, max, minmax and minmax_element 16.5 Function Objects 16.6 Standard Library Algorithm Summary 16.7 Wrap-Up 17 Exception Handling: A Deeper Look 17.1 Introduction 17.2 Exception-Handling Flow of Control; Defining an Exception Class Defining an Exception Class to Represent the Type of Problem That Might Occur Demonstrating Exception Handling Enclosing Code in a try Block Defining a catch Handler to Process a DivideByZeroException Termination Model of Exception Handling Flow of Program Control When the User Enters a Nonzero Denominator Flow of Program Control When the User Enters a Denominator of Zero 17.3 Rethrowing an Exception 17.4 Stack Unwinding 17.5 When to Use Exception Handling 17.6 noexcept: Declaring Functions That Do Not Throw Exceptions 17.7 Constructors, Destructors and Exception Handling Destructors Called Due to Exceptions Initializing Local Objects to Acquire Resources 17.8 Processing new Failures

10 new Throwing bad_alloc on Failure new Returning nullptr on Failure Handling new Failures Using Function set_new_handler 17.9 Class unique_ptr and Dynamic Memory Allocation unique_ptr Ownership unique_ptr to a Built-In Array Standard Library Exception Hierarchy Wrap-Up 18 Introduction to Custom Templates 18.1 Introduction 18.2 Class Templates Creating Class Template Stack Class Template Stack s Data Representation Class Template Stack s Member Functions Declaring a Class Template s Member Functions Outside the Class Template Definition Testing Class Template Stack 18.3 Function Template to Manipulate a Class-Template Specialization Object 18.4 Nontype Parameters 18.5 Default Arguments for Template Type Parameters 18.6 Overloading Function Templates 18.7 Wrap-Up 19 Custom Templatized Data Structures 19.1 Introduction Always Prefer the Standard Library s Containers, Iterators and Algorithms, if Possible Special Section: Building Your Own Compiler 19.2 Self-Referential Classes 19.3 Linked Lists Testing Our Linked List Implementation Class Template ListNode Class Template List Member Function insertatfront Member Function insertatback Member Function removefromfront Member Function removefromback Member Function print Circular Linked Lists and Double Linked Lists 19.4 Stacks Taking Advantage of the Relationship Between Stack and List Implementing a Class Template Stack Class Based By Inheriting from List Dependent Names in Class Templates Testing the Stack Class Template Implementing a Class Template Stack Class With Composition of a List Object 19.5 Queues Applications of Queues Implementing a Class Template Queue Class Based By Inheriting from List Testing the Queue Class Template 19.6 Trees Basic Terminology Binary Search Trees Testing the Tree Class Template Class Template TreeNode

11 Class Template Tree Tree Member Function insertnodehelper Tree Traversal Functions Duplicate Elimination Overview of the Binary Tree Exercises 19.7 Wrap-Up 20 Searching and Sorting 20.1 Introduction 20.2 Searching Algorithms Linear Search Binary Search 20.3 Sorting Algorithms Insertion Sort Selection Sort Merge Sort (A Recursive Implementation) 20.4 Wrap-Up 21 Class string and String Stream Processing: A Deeper Look 21.1 Introduction 21.2 string Assignment and Concatenation 21.3 Comparing strings 21.4 Substrings 21.5 Swapping strings 21.6 string Characteristics 21.7 Finding Substrings and Characters in a string 21.8 Replacing Characters in a string 21.9 Inserting Characters into a string Conversion to Pointer-Based char* Strings Iterators String Stream Processing C++11 Numeric Conversion Functions Wrap-Up 22 Bits, Characters, C Strings and structs 22.1 Introduction 22.2 Structure Definitions 22.3 typedef and using 22.4 Example: Card Shuffling and Dealing Simulation 22.5 Bitwise Operators 22.6 Bit Fields 22.7 Character-Handling Library 22.8 C String-Manipulation Functions 22.9 C String-Conversion Functions Search Functions of the C String-Handling Library Memory Functions of the C String-Handling Library Wrap-Up Chapters on the Web A B Operator Precedence and Associativity ASCII Character Set

12 C Fundamental Types D Number Systems D.1 Introduction D.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers D.3 Converting Octal and Hexadecimal Numbers to Binary Numbers D.4 Converting from Binary, Octal or Hexadecimal to Decimal D.5 Converting from Decimal to Binary, Octal or Hexadecimal D.6 Negative Binary Numbers: Two s Complement Notation E Preprocessor E.1 Introduction E.2 #include Preprocessing Directive E.3 #define Preprocessing Directive: Symbolic Constants E.4 #define Preprocessing Directive: Macros E.5 Conditional Compilation E.6 #error and #pragma Preprocessing Directives E.7 Operators # and ## E.8 Predefined Symbolic Constants E.9 Assertions E.10 Wrap-Up Appendices on the Web Index Chapters and Appendices F J are PDF documents posted online at the book s password-protected Companion Website, which is accessible from 23 Other Topics 24 C++11 and C++14: Additional Features 25 ATM Case Study, Part 1: Object-Oriented Design with the UM 26 ATM Case Study, Part 2: Implementing an Object-Oriented Design F G H I J C Legacy Code Topics UML: Additional Diagram Types Using the Visual Studio Debugger Using the GNU C++ Debugger Using the Xcode Debugger

Chapters and Appendices F J are PDF documents posted online at the book s Companion Website, which is accessible from.

Chapters and Appendices F J are PDF documents posted online at the book s Companion Website, which is accessible from. Contents Chapters 23 26 and Appendices F J are PDF documents posted online at the book s Companion Website, which is accessible from http://www.pearsonhighered.com/deitel See the inside front cover for

More information

Contents. 2 Introduction to C++ Programming,

Contents. 2 Introduction to C++ Programming, cppfp2_toc.fm Page vii Thursday, February 14, 2013 9:33 AM Chapter 24 and Appendices F K are PDF documents posted online at www.informit.com/title/9780133439854 Preface xix 1 Introduction 1 1.1 Introduction

More information

Deitel Series Page How To Program Series

Deitel Series Page How To Program Series Deitel Series Page How To Program Series Android How to Program C How to Program, 7/E C++ How to Program, 9/E C++ How to Program, Late Objects Version, 7/E Java How to Program, 9/E Java How to Program,

More information

Appendices E through H are PDF documents posted online at the book s Companion Website (located at

Appendices E through H are PDF documents posted online at the book s Companion Website (located at chtp7_printonlytoc.fm Page vii Monday, January 23, 2012 1:30 PM Appendices E through H are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel). Preface

More information

Contents. 1 Introduction to Computers, the Internet and the World Wide Web 1. 2 Introduction to C Programming 26

Contents. 1 Introduction to Computers, the Internet and the World Wide Web 1. 2 Introduction to C Programming 26 Preface xix 1 Introduction to Computers, the Internet and the World Wide Web 1 1.1 Introduction 2 1.2 What Is a Computer? 4 1.3 Computer Organization 4 1.4 Evolution of Operating Systems 5 1.5 Personal,

More information

Contents. Preface. Introduction. Introduction to C Programming

Contents. Preface. Introduction. Introduction to C Programming c11fptoc.fm Page vii Saturday, March 23, 2013 4:15 PM Preface xv 1 Introduction 1 1.1 1.2 1.3 1.4 1.5 Introduction The C Programming Language C Standard Library C++ and Other C-Based Languages Typical

More information

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object CHAPTER 1 Introduction to Computers and Programming 1 1.1 Why Program? 1 1.2 Computer Systems: Hardware and Software 2 1.3 Programs and Programming Languages 8 1.4 What is a Program Made of? 14 1.5 Input,

More information

Chapters and Appendices F I are PDF documents posted online at the book s Companion Website (located at

Chapters and Appendices F I are PDF documents posted online at the book s Companion Website (located at Chapters 23 27 and Appendices F I are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel). Preface 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 Introduction to Computers,

More information

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at Contents Chapters 16 27 and Appendix F are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface Before You Begin xix xxix 1 Introduction to

More information

Chapters are PDF documents posted online at the book s Companion Website (located at

Chapters are PDF documents posted online at the book s Companion Website (located at vbhtp6printonlytoc.fm Page ix Wednesday, February 27, 2013 11:59 AM Chapters 16 31 are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

Deitel Series Page How To Program Series

Deitel Series Page How To Program Series Deitel Series Page How To Program Series Android How to Program C How to Program, 7/E C++ How to Program, 9/E C++ How to Program, Late Objects Version, 7/E Java How to Program, 9/E Java How to Program,

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

Problem Solving with C++

Problem Solving with C++ GLOBAL EDITION Problem Solving with C++ NINTH EDITION Walter Savitch Kendrick Mock Ninth Edition PROBLEM SOLVING with C++ Problem Solving with C++, Global Edition Cover Title Copyright Contents Chapter

More information

Borland 105, 278, 361, 1135 Bounded array Branch instruction 7 break statement 170 BTree 873 Building a project 117 Built in data types 126

Borland 105, 278, 361, 1135 Bounded array Branch instruction 7 break statement 170 BTree 873 Building a project 117 Built in data types 126 INDEX = (assignment operator) 130, 816 = 0 (as function definition) 827 == (equality test operator) 146! (logical NOT operator) 159!= (inequality test operator) 146 #define 140, 158 #include 100, 112,

More information

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

Cpt S 122 Data Structures. Course Review Midterm Exam # 2 Cpt S 122 Data Structures Course Review Midterm Exam # 2 Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Midterm Exam 2 When: Monday (11/05) 12:10 pm -1pm

More information

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV Contents Preface Chapter 1 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

More information

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()

More information

Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University

Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 122 Data Structures Course Review FINAL Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Final When: Wednesday (12/12) 1:00 pm -3:00 pm Where: In Class

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Contents. 1 Introduction to Computers, the Internet. Before You Begin

Contents. 1 Introduction to Computers, the Internet. Before You Begin Contents Preface Before You Begin xxiii xxxvii 1 Introduction to Computers, the Internet and Visual C# 1 1.1 Introduction 2 1.2 Computers and the Internet in Industry and Research 2 1.3 Hardware and Software

More information

Contents. Before You Begin. Object Technology: A Brief Review

Contents. Before You Begin. Object Technology: A Brief Review csfp6_printonly.book Page vii Thursday, June 30, 2016 4:11 PM Preface Before You Begin xxi xxxii 1 Introduction 1 1.1 1.2 1.3 Introduction Object Technology: A Brief Review C# 1.3.1 Object-Oriented Programming

More information

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured Introduction p. xxix The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured Language p. 6 C Is a Programmer's Language

More information

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites: C Programming Code: MBD101 Duration: 10 Hours Prerequisites: You are a computer science Professional/ graduate student You can execute Linux/UNIX commands You know how to use a text-editing tool You should

More information

Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns

Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns This Advanced C++ Programming training course is a comprehensive course consists of three modules. A preliminary module reviews

More information

Programming Fundamentals - A Modular Structured Approach using C++ By: Kenneth Leroy Busbee

Programming Fundamentals - A Modular Structured Approach using C++ By: Kenneth Leroy Busbee 1 0 1 0 Foundation Topics 1 0 Chapter 1 - Introduction to Programming 1 1 Systems Development Life Cycle N/A N/A N/A N/A N/A N/A 1-8 12-13 1 2 Bloodshed Dev-C++ 5 Compiler/IDE N/A N/A N/A N/A N/A N/A N/A

More information

Introduction to C++ Systems Programming

Introduction to C++ Systems Programming Introduction to C++ Systems Programming Introduction to C++ Syntax differences between C and C++ A Simple C++ Example C++ Input/Output C++ Libraries C++ Header Files Another Simple C++ Example Inline Functions

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p. Preface to the Second Edition p. iii Preface to the First Edition p. vi Brief Contents p. ix Introduction to C++ p. 1 A Review of Structures p. 1 The Need for Structures p. 1 Creating a New Data Type Using

More information

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and

More information

Visual C# 2008 How to Program, 3/E Outline

Visual C# 2008 How to Program, 3/E Outline vcsharp2008htp_outline.fm Page ix Monday, December 17, 2007 4:39 PM Visual C# 2008 How to Program, 3/E Outline ( subject to change) current as of 12/17/07. As the contents change, we ll post updates at

More information

Chapter 15 - C++ As A "Better C"

Chapter 15 - C++ As A Better C Chapter 15 - C++ As A "Better C" Outline 15.1 Introduction 15.2 C++ 15.3 A Simple Program: Adding Two Integers 15.4 C++ Standard Library 15.5 Header Files 15.6 Inline Functions 15.7 References and Reference

More information

C++ (Non for C Programmer) (BT307) 40 Hours

C++ (Non for C Programmer) (BT307) 40 Hours C++ (Non for C Programmer) (BT307) 40 Hours Overview C++ is undoubtedly one of the most widely used programming language for implementing object-oriented systems. The C++ language is based on the popular

More information

Practical C++ Programming

Practical C++ Programming SECOND EDITION Practical C++ Programming Steve Oualline O'REILLY' Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo Preface xv Part I. The Basics 1. What Is C++? 3 A Brief History of C++ 3 C++

More information

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17 List of Programs xxv List of Figures xxix List of Tables xxxiii Preface to second version xxxv PART 1 Structured Programming 1 1 Getting started 3 1.1 Programming 3 1.2 Editing source code 5 Source code

More information

Computer Programming C++ (wg) CCOs

Computer Programming C++ (wg) CCOs Computer Programming C++ (wg) CCOs I. The student will analyze the different systems, and languages of the computer. (SM 1.4, 3.1, 3.4, 3.6) II. The student will write, compile, link and run a simple C++

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT Two Mark Questions UNIT - I 1. DEFINE ENCAPSULATION. Encapsulation is the process of combining data and functions

More information

Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p.

Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p. Welcome to Teach Yourself p. viii Acknowledgments p. xv Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p. 6 Standard C++: A Programming Language and a Library p. 8

More information

CERTIFICATE IN WEB PROGRAMMING

CERTIFICATE IN WEB PROGRAMMING COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING

More information

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++ Introduction to Programming in C++ Course Text Programming in C++, Zyante, Fall 2013 edition. Course book provided along with the course. Course Description This course introduces programming in C++ and

More information

Lecture 21 Standard Template Library. A simple, but very limited, view of STL is the generality that using template functions provides.

Lecture 21 Standard Template Library. A simple, but very limited, view of STL is the generality that using template functions provides. Lecture 21 Standard Template Library STL: At a C++ standards meeting in 1994, the committee voted to adopt a proposal by Alex Stepanov of Hewlett-Packard Laboratories to include, as part of the standard

More information

C and C++ Courses. C Language

C and C++ Courses. C Language C Language The "C" Language is currently one of the most widely used programming languages. Designed as a tool for creating operating systems (with its help the first Unix systems were constructed) it

More information

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University) Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Subject Code & Name : CS 1202

More information

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated 'A'

More information

Visual Basic 2008 How to Program, 4/E Outline

Visual Basic 2008 How to Program, 4/E Outline vbhtp4_outline.fm Page ix Monday, December 17, 2007 4:40 PM Visual Basic 2008 How to Program, 4/E Outline ( subject to change) current as of 12/17/07. As the contents change, we ll post updates at www.deitel.com/books/vbhtp4/.

More information

Appendices E through I are PDF documents posted online at the book s Companion Website (located at

Appendices E through I are PDF documents posted online at the book s Companion Website (located at Contents Appendices E through I are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel). Preface 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12

More information

Appendix. Grammar. A.1 Introduction. A.2 Keywords. There is no worse danger for a teacher than to teach words instead of things.

Appendix. Grammar. A.1 Introduction. A.2 Keywords. There is no worse danger for a teacher than to teach words instead of things. A Appendix Grammar There is no worse danger for a teacher than to teach words instead of things. Marc Block Introduction keywords lexical conventions programs expressions statements declarations declarators

More information

Ch. 12: Operator Overloading

Ch. 12: Operator Overloading Ch. 12: Operator Overloading Operator overloading is just syntactic sugar, i.e. another way to make a function call: shift_left(42, 3); 42

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

CS3157: Advanced Programming. Outline

CS3157: Advanced Programming. Outline CS3157: Advanced Programming Lecture #12 Apr 3 Shlomo Hershkop shlomo@cs.columbia.edu 1 Outline Intro CPP Boring stuff: Language basics: identifiers, data types, operators, type conversions, branching

More information

Tokens, Expressions and Control Structures

Tokens, Expressions and Control Structures 3 Tokens, Expressions and Control Structures Tokens Keywords Identifiers Data types User-defined types Derived types Symbolic constants Declaration of variables Initialization Reference variables Type

More information

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

Axivion Bauhaus Suite Technical Factsheet MISRA

Axivion Bauhaus Suite Technical Factsheet MISRA MISRA Contents 1. C... 2 1. Misra C 2004... 2 2. Misra C 2012 (including Amendment 1). 10 3. Misra C 2012 Directives... 18 2. C++... 19 4. Misra C++ 2008... 19 1 / 31 1. C 1. Misra C 2004 MISRA Rule Severity

More information

PROGRAM HOW TO. Harvey Deitel. Deuel. Paul Deitel. Deitel &Associates, Inc. SEVENTH EDITION. InternationalEdition contributions by PEARSON

PROGRAM HOW TO. Harvey Deitel. Deuel. Paul Deitel. Deitel &Associates, Inc. SEVENTH EDITION. InternationalEdition contributions by PEARSON HOW TO PROGRAM SEVENTH EDITION Paul Deitel Deitel &Associates, Inc. Harvey Deitel Deitel &Associates, Inc. InternationalEdition contributions by MohitP. Tahiliani National Institute oftechnology Kamataka,

More information

Index. Symbols. bit sequence, 27 ^ (exclusive OR) operator, 30 hexadecimal number, 27 left shift (<<) operator, 31 right shift (>>) operator, 32

Index. Symbols. bit sequence, 27 ^ (exclusive OR) operator, 30 hexadecimal number, 27 left shift (<<) operator, 31 right shift (>>) operator, 32 Symbols && operator, 32 operator, 32 A AddDynamicOption method, 188 AddItem method, 192 Addition operator, 18 Allocating memory, 228 overloaded delete function, 233 overloaded new function, 232 unnamed

More information

Learning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli

Learning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli Identify and overcome the difficulties encountered by students when learning how to program List and explain the software development roles played by students List and explain the phases of the tight spiral

More information

Axivion Bauhaus Suite Technical Factsheet AUTOSAR

Axivion Bauhaus Suite Technical Factsheet AUTOSAR Version 6.9.1 upwards Axivion Bauhaus Suite Technical Factsheet AUTOSAR Version 6.9.1 upwards Contents 1. C++... 2 1. Autosar C++14 Guidelines (AUTOSAR 17.03)... 2 2. Autosar C++14 Guidelines (AUTOSAR

More information

index C++ language characters ASCII codes, 16 escape sequence, 19 trigraph sequence, 18 UCS codes, 17 Unicode, 17 classes, 7 code presentation styles,

index C++ language characters ASCII codes, 16 escape sequence, 19 trigraph sequence, 18 UCS codes, 17 Unicode, 17 classes, 7 code presentation styles, Index A Abstract class Circle class creation, 454 constructor, 453 data member, 457 definition, 453 interface, 455 three-level class hierarchy, 458 Vessel class, 456 457 volume() function, 454 455 Access

More information

CS201 Some Important Definitions

CS201 Some Important Definitions CS201 Some Important Definitions For Viva Preparation 1. What is a program? A program is a precise sequence of steps to solve a particular problem. 2. What is a class? We write a C++ program using data

More information

C-LANGUAGE CURRICULAM

C-LANGUAGE CURRICULAM C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

Unit-II Programming and Problem Solving (BE1/4 CSE-2) Unit-II Programming and Problem Solving (BE1/4 CSE-2) Problem Solving: Algorithm: It is a part of the plan for the computer program. An algorithm is an effective procedure for solving a problem in a finite

More information

ENGINEERING PROBLEM SOLVING WITH C++

ENGINEERING PROBLEM SOLVING WITH C++ ENGINEERING PROBLEM SOLVING WITH C++ Second Edition Delores M. Etter Electrical Engineering Department United States Naval Academy Jeanine A. Ingber Training Consultant Sandia National Laboratories Upper

More information

Before You Begin. and Visual Basic 1

Before You Begin. and Visual Basic 1 Contents Preface Before You Begin xxiii xli 1 Introduction to Computers, the Internet and Visual Basic 1 1.1 Introduction 2 1.2 What Is a Computer? 3 1.3 Computer Organization 3 1.4 Early Operating Systems

More information

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.asp...

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.asp... 1 of 8 8/27/2014 2:15 PM Units: Teacher: ProgIIIAPCompSci, CORE Course: ProgIIIAPCompSci Year: 2012-13 Computer Systems This unit provides an introduction to the field of computer science, and covers the

More information

Chapters and Appendices D I are PDF documents posted online at the book s Companion Website (located atwww.pearsonhighered.com/deitel).

Chapters and Appendices D I are PDF documents posted online at the book s Companion Website (located atwww.pearsonhighered.com/deitel). Chapters 22 27 and Appendices D I are PDF documents posted online at the book s Companion Website (located atwww.pearsonhighered.com/deitel). Preface xxi 1 Introduction to Computers,the Internet and the

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe OBJECT ORIENTED PROGRAMMING USING C++ CSCI 5448- Object Oriented Analysis and Design By Manali Torpe Fundamentals of OOP Class Object Encapsulation Abstraction Inheritance Polymorphism Reusability C++

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

COEN244: Class & function templates

COEN244: Class & function templates COEN244: Class & function templates Aishy Amer Electrical & Computer Engineering Templates Function Templates Class Templates Outline Templates and inheritance Introduction to C++ Standard Template Library

More information

Cpt S 122 Data Structures. Introduction to C++ Part II

Cpt S 122 Data Structures. Introduction to C++ Part II Cpt S 122 Data Structures Introduction to C++ Part II Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Topics Objectives Defining class with a member function

More information

S Y B Voc Software Development Syllabus

S Y B Voc Software Development Syllabus S Y B Voc Software Development Syllabus Course Level Job Roles Course Name: Pattern: Examination Pattern: Eligibility: Medium of Instruction: NSQF Level-VI 1. Jr. Software Developer 2. Trainer Software

More information

Instantiation of Template class

Instantiation of Template class Class Templates Templates are like advanced macros. They are useful for building new classes that depend on already existing user defined classes or built-in types. Example: stack of int or stack of double

More information

Object-Oriented Programming in C# (VS 2015)

Object-Oriented Programming in C# (VS 2015) Object-Oriented Programming in C# (VS 2015) This thorough and comprehensive 5-day course is a practical introduction to programming in C#, utilizing the services provided by.net. This course emphasizes

More information

cs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... C++ vs Java identifiers.

cs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... C++ vs Java identifiers. cs3157: c++ lecture #2 (mon-11-apr-2005) chronology of some programming languages... today: language basics: identifiers, data types, operators, type conversions, branching and looping, program structure

More information

Global edition. Java How to Program. Late Objects Version. TENTH edition. Paul Deitel Harvey Deitel

Global edition. Java How to Program. Late Objects Version. TENTH edition. Paul Deitel Harvey Deitel Global edition Java How to Program Late Objects Version TENTH edition Paul Deitel Harvey Deitel GLOBAL EDITION Java How to Program Late Objects Version TENTH EDITION Java: How to Program (Late Objects),

More information

Contents. Illustrations. 1 Introduction to Computers, the Internet, the Web and C# 1

Contents. Illustrations. 1 Introduction to Computers, the Internet, the Web and C# 1 csphtp1toc.fm Page viii Friday, December 14, 2001 1:49 PM Illustrations Preface viii xix xxxviii 1 Introduction to Computers, the Internet, the Web and C# 1 1.1 Introduction 2 1.2 What Is a Computer? 3

More information

SOME ASSEMBLY REQUIRED

SOME ASSEMBLY REQUIRED SOME ASSEMBLY REQUIRED Assembly Language Programming with the AVR Microcontroller TIMOTHY S. MARGUSH CRC Press Taylor & Francis Group CRC Press is an imprint of the Taylor & Francis Croup an Informa business

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

Interview Questions of C++

Interview Questions of C++ Interview Questions of C++ Q-1 What is the full form of OOPS? Ans: Object Oriented Programming System. Q-2 What is a class? Ans: Class is a blue print which reflects the entities attributes and actions.

More information

Language Reference Manual simplicity

Language Reference Manual simplicity Language Reference Manual simplicity Course: COMS S4115 Professor: Dr. Stephen Edwards TA: Graham Gobieski Date: July 20, 2016 Group members Rui Gu rg2970 Adam Hadar anh2130 Zachary Moffitt znm2104 Suzanna

More information

Object Oriented Programming with c++ Question Bank

Object Oriented Programming with c++ Question Bank Object Oriented Programming with c++ Question Bank UNIT-1: Introduction to C++ 1. Describe the following characteristics of OOP. i Encapsulation ii Polymorphism, iii Inheritance 2. Discuss function prototyping,

More information

Object-Oriented Programming in C# (VS 2012)

Object-Oriented Programming in C# (VS 2012) Object-Oriented Programming in C# (VS 2012) This thorough and comprehensive course is a practical introduction to programming in C#, utilizing the services provided by.net. This course emphasizes the C#

More information

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

KLiC C++ Programming. (KLiC Certificate in C++ Programming) KLiC C++ Programming (KLiC Certificate in C++ Programming) Turbo C Skills: Pre-requisite Knowledge and Skills, Inspire with C Programming, Checklist for Installation, The Programming Languages, The main

More information

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING OBJECT ORIENTED PROGRAMMING STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING 1. Object Oriented Programming Paradigms 2. Comparison of Programming Paradigms 3. Basic Object Oriented Programming

More information

Table of Contents Preface Bare Necessities... 17

Table of Contents Preface Bare Necessities... 17 Table of Contents Preface... 13 What this book is about?... 13 Who is this book for?... 14 What to read next?... 14 Personages... 14 Style conventions... 15 More information... 15 Bare Necessities... 17

More information

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5507&c=618&mo=18917&t=191&sy=2012&bl...

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5507&c=618&mo=18917&t=191&sy=2012&bl... Page 1 of 13 Units: - All - Teacher: ProgIIIJavaI, CORE Course: ProgIIIJavaI Year: 2012-13 Intro to Java How is data stored by a computer system? What does a compiler do? What are the advantages of using

More information

Basic Types, Variables, Literals, Constants

Basic Types, Variables, Literals, Constants Basic Types, Variables, Literals, Constants What is in a Word? A byte is the basic addressable unit of memory in RAM Typically it is 8 bits (octet) But some machines had 7, or 9, or... A word is the basic

More information

CHOICE BASED CREDIT SYSTEM (With effect from )

CHOICE BASED CREDIT SYSTEM (With effect from ) B.Sc. Computer Science Syllabus Under the CHOICE BASED CREDIT SYSTEM (With effect from 2017-18) DEPARTMENT OF COMPUTER SCIENCE University College,TU,Nizamabad-503322 Syllabus for Computer Science (With

More information

CSCI 171 Chapter Outlines

CSCI 171 Chapter Outlines Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures

More information

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. Preface p. xix Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. 5 Java Applets and Applications p. 5

More information

SAURASHTRA UNIVERSITY

SAURASHTRA UNIVERSITY SAURASHTRA UNIVERSITY RAJKOT INDIA Accredited Grade A by NAAC (CGPA 3.05) CURRICULAM FOR B.Sc. (Computer Science) Bachelor of Science (Computer Science) (Semester - 1 Semester - 2) Effective From June

More information

c++ keywords: ( all lowercase ) Note: cin and cout are NOT keywords.

c++ keywords: ( all lowercase ) Note: cin and cout are NOT keywords. Chapter 1 File Extensions: Source code (cpp), Object code (obj), and Executable code (exe). Preprocessor processes directives and produces modified source Compiler takes modified source and produces object

More information

END TERM EXAMINATION

END TERM EXAMINATION END TERM EXAMINATION THIRD SEMESTER [BCA] DECEMBER 2007 Paper Code: BCA 209 Subject: Object Oriented Programming Time: 3 hours Maximum Marks: 75 Note: Attempt all questions. Internal choice is indicated.

More information

Chapter 2 - Control Structures

Chapter 2 - Control Structures Chapter 2 - Control Structures 1 Outline 2.1 Introduction 2.2 Algorithms 2.3 Pseudocode 2.4 Control Structures 2.5 if Selection Structure 2.6 if/else Selection Structure 2.7 while Repetition Structure

More information

Major Language Changes, pt. 1

Major Language Changes, pt. 1 C++0x What is C++0x? Updated version of C++ language. Addresses unresolved problems in C++03. Almost completely backwards compatible. Greatly increases expressiveness (and complexity!) of language. Greatly

More information