Skip to content

Commit 350a951

Browse files
authored
Laboratory work 1
1 parent fcc0a94 commit 350a951

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Laboratory work on an academic subject: "Programming dynamic data structures"
33
____
44
## Content
5-
1. [Laboratory work 1](#Laboratory work 1. Creating functions that implement operations for creating work with sets)
5+
1. [Laboratory work 1](#laboratory_work_1._creating_functions_that_implement_operations_for_creating_work_with_sets)
66
1.1. [Creating an empty set](#Creating an empty set - `Node* creatingAnEmptySet()`)
77
1.2. [Checking for an empty set](#Checking for an empty set - `bool emptySet(Node* first)`)
88
1.3. [Checking whether an element belongs to a set](#Checking whether an element belongs to a set - `bool checkingOfExistence(Node* first, int checking_value)`)
@@ -12,7 +12,7 @@ ____
1212
1.7. [Output of elements of the set](#Output of elements of the set - `string printSet(Node* first, string separator)`)
1313
1.8. [Deleting a set (clearing the memory occupied by the list)](#Deleting a set (clearing the memory occupied by the list) - `Node* deleteSet(Node*& first)`)
1414
____
15-
##Laboratory work 1. Creating functions that implement operations for creating work with sets
15+
## Laboratory work 1. Creating functions that implement operations for creating work with sets
1616
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
1717

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

24-
###Creating an empty set - `Node* creatingAnEmptySet()`
24+
### Creating an empty set - `Node* creatingAnEmptySet()`
2525
*Input parameters:* None.
2626
*Output parameters:* a pointer to the first element of the list, equal to NULL.
27-
###Checking for an empty set - `bool emptySet(Node* first)`
27+
### Checking for an empty set - `bool emptySet(Node* first)`
2828
*Input parameters:* a pointer to the first item in the list.
2929
*Output parameters:* Boolean value.
30-
###Checking whether an element belongs to a set - `bool checkingOfExistence(Node* first, int checking_value)`
30+
### Checking whether an element belongs to a set - `bool checkingOfExistence(Node* first, int checking_value)`
3131
*Input parameters:* a pointer to the first element of the list, the value of the element.
3232
*Output parameters:* Boolean value.
33-
###Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
33+
### Adding a new element to the set - `Node* add(Node*& first, int adding_value)`
3434
*Input parameters:* a pointer to the first element of the list, a value to be added to the list.
3535
*Output parameters:* a pointer to the first element of the result list.
3636
*Restriction:* Adding an item to the top of the list.
37-
###The power of the set - `int powerOfTheSet (Node* first)`
37+
### The power of the set - `int powerOfTheSet (Node* first)`
3838
*Input parameters:* a pointer to the first item in the list.
3939
*Output parameters:* integer value.
40-
###Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
40+
### Creating a set - `Node* creatingSet(int quantity, int min, int max, int k)`
4141
*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.
4242
*Output parameters:* a pointer to the first element of the result list. Generation of values by a random number sensor.
4343
*Requirement:* check the possibility of creating a set with the specified parameters.
44-
###Output of elements of the set - `string printSet(Node* first, string separator)`
44+
### Output of elements of the set - `string printSet(Node* first, string separator)`
4545
*Input parameters:* a pointer to the first element of the list, a separator character.
4646
*Output parameters:* a string containing elements of a set separated by a separator character.
4747
*Requirements:* there should not be a separator at the end of the result line
48-
###Deleting a set (clearing the memory occupied by the list) - `Node* deleteSet(Node*& first)`
48+
### Deleting a set (clearing the memory occupied by the list) - `Node* deleteSet(Node*& first)`
4949
*Input parameters:* a pointer to the first item in the list.
5050
*Output parameters:* a pointer to the first element of the list, equal to NULL.
5151
____

0 commit comments

Comments
 (0)