Skip to content

Commit 391c039

Browse files
authored
Laboratory work 1
1 parent 286070c commit 391c039

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
Laboratory work on an academic subject: "Programming dynamic data structures"
33
____
44
## 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>
1414
____
15-
## Laboratory work 1. Creating functions that implement operations for creating work with sets
1615
<a name="l1"></a>
16+
## Laboratory work 1. Creating functions that implement operations for creating work with sets
1717
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
1818

1919
| File name | File Contents |
@@ -22,41 +22,41 @@ A singly connected list of integer values is used to represent the set. OOP is n
2222
| SetLab1_12_Kudashov.h | Function set header file |
2323
| SetLab1_12_Kudashov.cpp | Function set implementation file |
2424

25-
### Creating an empty set - `Node* creatingAnEmptySet()`
2625
<a name="l11"></a>
26+
### Creating an empty set - `Node* creatingAnEmptySet()`
2727
*Input parameters:* None.
2828
*Output parameters:* a pointer to the first element of the list, equal to NULL.
29+
<a name="l12"></a>
2930
### Checking for an empty set - `bool emptySet(Node* first)`
30-
<a name="l12"></a>
3131
*Input parameters:* a pointer to the first item in the list.
3232
*Output parameters:* Boolean value.
33+
<a name="l13"></a>
3334
### Checking whether an element belongs to a set - `bool checkingOfExistence(Node* first, int checking_value)`
34-
<a name="l13"></a>
3535
*Input parameters:* a pointer to the first element of the list, the value of the element.
3636
*Output parameters:* Boolean value.
37-
### Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
3837
<a name="l14"></a>
38+
### Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
3939
*Input parameters:* a pointer to the first element of the list, a value to be added to the list.
4040
*Output parameters:* a pointer to the first element of the result list.
4141
*Restriction:* Adding an item to the top of the list.
42-
### The power of the set - `int powerOfTheSet (Node* first)`
4342
<a name="l15"></a>
43+
### The power of the set - `int powerOfTheSet (Node* first)`
4444
*Input parameters:* a pointer to the first item in the list.
4545
*Output parameters:* integer value.
46-
### Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
4746
<a name="l16"></a>
47+
### Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
4848
*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.
4949
*Output parameters:* a pointer to the first element of the result list. Generation of values by a random number sensor.
5050
*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)`
5251
<a name="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>
5756
<a name="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>
6060
____
6161
[:arrow_up:Content](#Content)
6262
____

0 commit comments

Comments
 (0)