-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
53 lines (37 loc) · 899 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <cstdlib>
#include <iostream>
#include "LinkedList.hpp"
/*
*
*/
void firstTask() {
double dASide, dBSide, S;
}
void secondTask() {
}
void ptrFunc(int &nParam) {
int nVal = 10;
std::cout << nVal << std::endl;
int *pNVal = &nVal;
*pNVal = 40.5;
std::cout << nVal << std::endl;
nParam++;
int intArr[5] = {4, 2, 0, 9};
std::cout << "Значения элементов массива равны:\n";
int* pArray = intArr;
for (int n = 0; n < 5; n++, pArray++) {
std::cout << n << ": " << *pArray << "\n";
}
std::cout << "\n";
}
int main(int argc, char** argv) {
LinkedList linkedList;
linkedList.add(2);
linkedList.add(5);
linkedList.add(1);
linkedList.add(6);
linkedList.out();
linkedList.clear();
linkedList.out();
return 0;
}