You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,18 @@
2
2
Laboratory work on an academic subject: "Programming dynamic data structures"
3
3
____
4
4
## Content
5
-
1.[Laboratory work 1](#l1)
6
-
1.1. [Creating an empty set](#l11)
7
-
1.2. [Checking for an empty set](#l12)
8
-
1.3. [Checking whether an element belongs to a set](#l13)
9
-
1.4. [Adding a new element to the set](#l14)
10
-
1.5. [The power of the set](#l15)
11
-
1.6. [Creating a set](#l16)
12
-
1.7. [Output of elements of the set](#l17)
13
-
1.8. [Deleting a set (clearing the memory occupied by the list)](#l18)
5
+
1.[Laboratory work 1](#l1)<br>
6
+
1.1. [Creating an empty set](#l11)<br>
7
+
1.2. [Checking for an empty set](#l12)<br>
8
+
1.3. [Checking whether an element belongs to a set](#l13)<br>
9
+
1.4. [Adding a new element to the set](#l14)<br>
10
+
1.5. [The power of the set](#l15)<br>
11
+
1.6. [Creating a set](#l16)<br>
12
+
1.7. [Output of elements of the set](#l17)<br>
13
+
1.8. [Deleting a set (clearing the memory occupied by the list)](#l18)<br>
14
14
____
15
-
## Laboratory work 1. Creating functions that implement operations for creating work with sets
16
15
<aname="l1"></a>
16
+
## Laboratory work 1. Creating functions that implement operations for creating work with sets
17
17
A singly connected list of integer values is used to represent the set. OOP is not applied due to restrictions on the terms of reference
18
18
19
19
| File name | File Contents |
@@ -22,41 +22,41 @@ A singly connected list of integer values is used to represent the set. OOP is n
22
22
| SetLab1_12_Kudashov.h | Function set header file |
23
23
| SetLab1_12_Kudashov.cpp | Function set implementation file |
24
24
25
-
### Creating an empty set - `Node* creatingAnEmptySet()`
26
25
<aname="l11"></a>
26
+
### Creating an empty set - `Node* creatingAnEmptySet()`
27
27
*Input parameters:* None.
28
28
*Output parameters:* a pointer to the first element of the list, equal to NULL.
29
+
<aname="l12"></a>
29
30
### Checking for an empty set - `bool emptySet(Node* first)`
30
-
<aname="l12"></a>
31
31
*Input parameters:* a pointer to the first item in the list.
32
32
*Output parameters:* Boolean value.
33
+
<aname="l13"></a>
33
34
### Checking whether an element belongs to a set - `bool checkingOfExistence(Node* first, int checking_value)`
34
-
<aname="l13"></a>
35
35
*Input parameters:* a pointer to the first element of the list, the value of the element.
36
36
*Output parameters:* Boolean value.
37
-
### Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
38
37
<aname="l14"></a>
38
+
### Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
39
39
*Input parameters:* a pointer to the first element of the list, a value to be added to the list.
40
40
*Output parameters:* a pointer to the first element of the result list.
41
41
*Restriction:* Adding an item to the top of the list.
42
-
### The power of the set - `int powerOfTheSet (Node* first)`
43
42
<aname="l15"></a>
43
+
### The power of the set - `int powerOfTheSet (Node* first)`
44
44
*Input parameters:* a pointer to the first item in the list.
45
45
*Output parameters:* integer value.
46
-
### Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
47
46
<aname="l16"></a>
47
+
### Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
48
48
*Input parameters:* the number of elements, the range of acceptable values (from min to max). k is the multiplicity coefficient for checking the satisfaction of the condition.
49
49
*Output parameters:* a pointer to the first element of the result list. Generation of values by a random number sensor.
50
50
*Requirement:* check the possibility of creating a set with the specified parameters.
51
-
### Output of elements of the set - `string printSet(Node* first, string separator)`
52
51
<aname="l17"></a>
53
-
*Input parameters:* a pointer to the first element of the list, a separator character.
54
-
*Output parameters:* a string containing elements of a set separated by a separator character.
55
-
*Requirements:*there should not be a separator at the end of the result line
56
-
### Deleting a set (clearing the memory occupied by the list) - `Node* deleteSet(Node*& first)`
52
+
### Output of elements of the set - `string printSet(Node* first, string separator)`
53
+
*Input parameters:* a pointer to the first element of the list, a separator character. <br>
54
+
*Output parameters:*a string containing elements of a set separated by a separator character. <br>
55
+
*Requirements:* there should not be a separator at the end of the result line.<br>
57
56
<aname="l18"></a>
58
-
*Input parameters:* a pointer to the first item in the list.
59
-
*Output parameters:* a pointer to the first element of the list, equal to NULL.
57
+
### Deleting a set (clearing the memory occupied by the list) - `Node* deleteSet(Node*& first)`
58
+
*Input parameters:* a pointer to the first item in the list.<br>
59
+
*Output parameters:* a pointer to the first element of the list, equal to NULL.<br>
0 commit comments