C++ by Example

Posted By: TiranaDok

C++ by Example by Alex Vasilev
English | May 19, 2025 | ISBN: N/A | ASIN: B0F9B1QCFZ | 390 pages | PDF | 8.54 Mb

This book is about C++. It consists of examples that cover all the main subjects essential for programming in C++.
  • Chapter 1 gives a general notion of what you can do in C++. There, you will learn how to create a program. The chapter also contains information about input and output operators, variables, functions, loop statements, conditional statements, and arrays.
  • Chapter 2 is devoted to the control statements. In this chapter, you will meet the conditional, loop, and selection statements. You will also gain an understanding of handling exceptions.
  • Chapter 3 explores pointers, arrays, and references, covering the creation and use of pointers, the relationship between pointers and arrays, and the application and usage of references. Moreover, the chapter contains information about memory allocation and describes peculiarities of character arrays used to implement strings.
  • Chapter 4 is about functions. There, you will learn what a function can do and how you can use it, how to overload functions, define the arguments with default values, and use recursion. The chapter also discusses how arguments are passed to functions and how you can pass a function as an argument. Also, you will learn how functions operate with arrays, references, and pointers.
  • Chapter 5 discusses the principles of object-oriented programming, covering how to describe classes and create objects. Additionally, the chapter provides information about public and private members, constructors and destructors, method overloading and operator overloading, and the use of inheritance.
  • Chapter 6 is also devoted to classes and objects. There, you will get familiar with pointers to objects, arrays of objects, and functors. You will be able to use objects whose fields are arrays and implement object indexing. The chapter also discusses virtual methods, multiple inheritance, and other techniques with classes and objects.
  • Chapter 7 explores template functions and classes, discussing how to create and overload template functions with multiple parameters. You will also learn how to define default values for template parameters and how to apply inheritance for template classes.
  • Chapter 8 presents various programs, explaining how to utilize structures, complex numbers, and containers. You will also get familiar with multithreading.
  • Chapter 9 is devoted to mathematical problems. In that chapter, you will learn how to implement methods for solving algebraic and differential equations, calculate integrals, and create interpolation polynomials.