-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
51 lines (42 loc) · 920 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
/*
* File: main.cpp
* Author: gareth
*
* Created on 01 December 2015, 15:21
*/
/*
* 9 minutes for class Guitar and methods
*/
#include <iostream>
#include "Guitar.h"
#include "GuitarList.h"
using namespace std;
int main() {
Guitar g(1,"gibson", "guitar");
Guitar g1;
g1 = g;
cout << g1 << endl << endl;
//g.print();
//cout << g.getMake();
GuitarList gl;
gl.addFront(3,"Fender","Stratocastor");
gl.addFront(2,"Gibson","Les Paul");
gl.addFront(1,"Martin", "Acoustic");
gl.addEnd(4,"Fender", "Telecastor");
gl.display();
cout << endl << endl;
gl.alterNode(1);
cout << endl << endl;
gl.display();
cout << endl << endl;
gl.deleteMostRecent();
gl.deleteNodeAt(4);
gl.display();
cout << endl << endl;
GuitarList gc(gl);
gc = gl;
gc.display();
cout << endl << endl;
system("pause");
return 0;
}