Lesson # 10. Classes

Back Menu Theory Classes are an expanded concept of data structures: like data structures, they can contain data members, but they can also contain functions as members. An object is an instantiation of a class. In terms of variables, a Читать далее

Lesson # 11. Lists

Back Menu Go ahead Theory Forward_list or singly-linked lists Sequence Elements in sequence containers are ordered in a strict linear sequence. Individual elements are accessed by their position in this sequence. Linked list Each element keeps information on how to Читать далее

Lesson # 9. Structures

Back Menu Go ahead Theory Structures in C++ A data structure is a group of data elements grouped together under one name. These data elements, known as members, can have different types and different lengths. Example: 1 2 3 4 Читать далее

Lesson # 6. Using strings

Back Menu Go ahead Theory String type To work with a string the string library must be included: #include <string>#include <string> Variables of string type can be understood as an array of characters. A specific character in a string can Читать далее