C++ programming in easy steps
Book - 2022
C++ Programming in easy steps, 6th edition shows you how to program in the powerful C++ native system language. Now, in its sixth edition, this guide gives complete examples that illustrate each aspect with colorized source code. Updated for the GNU C Compiler and Visual Studio 2022. C++ Programming in easy steps, 6th edition begins by explaining how to install a free C++ compiler so you can quickly begin to create your own executable programs by copying the book's examples. It demonstrates all the C++ language basics before moving on to provide examples of Object Oriented Programming (OOP). C++ is not platform-dependent, so programs can be created on any operating system. Most illustrations in this book depict output on the Windows o...perating system (purely because it is the most widely-used desktop platform) but the examples can also be created on other platforms such as Linux or macOS. The book concludes by demonstrating how you can use your acquired knowledge to create programs graphically using a modern C++ Integrated Development Environment (IDE), such as Microsoft's Visual Studio 2022.
- Subjects
- Published
-
Leamington Spa, Warwickshire, United Kingdom :
In Easy Steps Limited
[2022]
- Language
- English
- Main Author
- Edition
- 6th edition
- Item Description
- Includes index.
"Updated for the new GNU C Compiler"--Cover. - Physical Description
- 192 pages : illustrations ; 23 cm
- ISBN
- 9781840789713
- 1. Getting started
- Introducing C++
- Installing a compiler
- Writing your first program
- Compiling & running programs
- Creating variables
- Employing variable arrays
- Employing vector arrays
- Declaring constants
- Summary
- 2. Performing operations
- Doing arithmetic
- Assigning values
- Comparing values
- Assessing logic
- Examining conditions
- Establishing size
- Setting precedence
- Casting data types
- Summary
- 3. Making statements
- Branching with it
- Switching branches
- Looping for
- Looping while
- Declaring functions
- Passing arguments
- Overloading functions
- Optimizing functions
- Summary
- 4. Handling strings
- Creating siring variables
- Getting string input
- Solving the string problem
- Discovering string features
- Joining & comparing strings
- Copying & swapping strings
- Finding substrings
- Replacing substrings
- Summary
- 5. Reading and wiring files
- Writing a file
- Appending to a file
- Reading characters & lines
- Formatting with getline
- Manipulating input & output
- Predicting problems
- Recognizing exceptions
- Handling errors
- Summary
- 6. Pointing to data
- Understanding data storage
- Getting values with pointers
- Doing pointer arithmetic
- Passing pointers to functions
- Making arrays of pointers
- Referencing data
- Passing references to functions
- Comparing pointers & references
- Summary
- 7. Creating classes and objects
- Encapsulating data
- Creating an object
- Creating multiple objects
- Initializing class members
- Overloading methods
- Inheriting class properties
- Calling base constructors
- Overriding base methods
- Summary
- 8. Harnessing polymorphism
- Pointing to classes
- Calling a virtual method
- Directing method calls
- Providing capability classes
- Making abstract data types
- Building complex hierarchies
- Isolating class structures
- Employing isolated classes
- Summary
- 9. Processing macros
- Exploring compilation
- Defining substitutes
- Defining conditions
- Providing alternatives
- Guarding inclusions
- Using macro functions
- Building strings
- Debugging assertions
- Summary
- 10. Programming visually
- Starting a Universal project
- Inserting page components
- Importing program assets
- Designing the layout
- Adding runtime function
- Testing the program
- Adjusting the interface
- Deploying the application
- Summary
- Index