Вы находитесь на странице: 1из 1

Table of Contents

Boolean Values���������������������������������������������������������������������������������������������������������������������������� 25
Boolean Expressions������������������������������������������������������������������������������������������������������������������� 27
Type Consistency in Assignments����������������������������������������������������������������������������������������������� 28
Change of Type and of Mutability������������������������������������������������������������������������������������������������ 29
Assignment Arithmetic Operators����������������������������������������������������������������������������������������������� 30
Using the Functions of the Standard Library������������������������������������������������������������������������������ 31

Chapter 4: Controlling Execution Flow������������������������������������������������������������������� 33


Conditional Statements (if)��������������������������������������������������������������������������������������������������������� 33
Conditional Expressions�������������������������������������������������������������������������������������������������������������� 36
Conditioned Loops (while)����������������������������������������������������������������������������������������������������������� 38
Infinite Loops (loop)�������������������������������������������������������������������������������������������������������������������� 40
Counting Loops (for)�������������������������������������������������������������������������������������������������������������������� 40
Variables Scopes������������������������������������������������������������������������������������������������������������������������� 42

Chapter 5: Using Data Sequences��������������������������������������������������������������������������� 47


Arrays������������������������������������������������������������������������������������������������������������������������������������������ 47
Mutable Arrays���������������������������������������������������������������������������������������������������������������������������� 50
Arrays of Specified Size�������������������������������������������������������������������������������������������������������������� 51
Multidimensional Arrays������������������������������������������������������������������������������������������������������������� 52
Vectors���������������������������������������������������������������������������������������������������������������������������������������� 53
Other Operations on Vectors������������������������������������������������������������������������������������������������������� 56
Empty Arrays and Vectors����������������������������������������������������������������������������������������������������������� 57
Debug Print��������������������������������������������������������������������������������������������������������������������������������� 58
Copying Arrays and Vectors�������������������������������������������������������������������������������������������������������� 59

Chapter 6: Using Primitive Types���������������������������������������������������������������������������� 61


Non-Decimal Numeric Bases������������������������������������������������������������������������������������������������������ 62
Underscore in Numeric Literals�������������������������������������������������������������������������������������������������� 63
The Exponential Notation������������������������������������������������������������������������������������������������������������ 64
The Various Kinds of Signed Integer Numbers���������������������������������������������������������������������������� 65

iv

Вам также может понравиться