February 2022
Beginner
848 pages
22h 40m
English
In previous lessons, you declared variables used to contain a single int, char, or string, to mention a few instances. However, you may want to declare a collection of objects, such as 20 ints or a string of characters to hold a name.
In this lesson, you learn
■ What arrays are and how to declare and use them
■ What strings are and how to use character arrays to make them
■ A brief introduction to std::string
The dictionary definition of an array gets really close to what you need to understand in the context of C++. According to Merriam-Webster, an array is “a group of elements forming a complete unit, for example an array of solar panels.”
The following are characteristics of ...
Read now
Unlock full access