-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathList.cpp
More file actions
47 lines (47 loc) · 1.15 KB
/
List.cpp
File metadata and controls
47 lines (47 loc) · 1.15 KB
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
//#include "List.h"
//#include "Point.h"
//int main()
//{
// List<char> l;
// l.insertNode(70);
// l.insertNode(69);
// l.insertNode(69);
// l.insertNode(81);
// l.printList();
// l.deleteFirst();
// l.printList();
// cout << "--------------------------------\n";
// List<int>list_int;
// list_int.insertNode(25);
// list_int.insertNode(-125);
// list_int.insertNode(0);
// list_int.insertNode(5);
// list_int.printList();
// list_int.deleteFirst();
// list_int.printList();
// list_int.deleteNode(1);
// list_int.printList();
// cout << "--------------------------------\n";
// List<Point> points;
// points.insertNode(Point(7, 0));
// points.insertNode(Point(6,9));
// points.insertNode(Point(1,9));
// points.insertNode(Point(1, 0));
// points.insertNode(Point(8,1));
// points.printList();
// cout<< "--------------------------------\n";
// points.deleteNode(Point(8, 1));
// points.printList();
// cout << "--------------------------------\n";
// cout << "Vudalutu 1-i element:\n";
// points.deleteFirst();
// points.printList();
//
// List<int>list_int1;
// list_int1.insertNode(25);
//
// list_int1.printList();
// list_int1.deleteFirst();
// list_int1.printList();
//
//}