-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
67 lines (49 loc) · 1.12 KB
/
Copy pathmain.cpp
File metadata and controls
67 lines (49 loc) · 1.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include "Stack.h"
#include "Queue.h"
#include "string"
#include "readCSV.h"
using namespace std;
int main() {
Queue<int> q1;
q1.enqueue(1);
q1.enqueue(2);
q1.enqueue(3);
q1.print();
q1.dequeue();
q1.print();
q1.enqueue(4);
q1.print();
cout << ""<<endl;
Queue<string> q2;
q2.enqueue("firstItem");
q2.enqueue("secondItem");
q2.print();
q2.dequeue();
q2.print();
q2.enqueue("thirdItem");
q2.print();
Queue<csvData> dataQueue;
vector<csvData> csvDataV;
Stack<csvData> dataStack;
string filePath = "../Bella_Beats_Analysis_Master_Dataset_Cleaned.csv";
getDataFromFile(csvDataV, filePath);
for (int i = 0; i <= 10; i++)
{
csvData tempData = csvDataV[i];
dataQueue.enqueue(tempData);
}
dataQueue.print();
cout << ""<<endl;
for (int i = 0; i <= 10; i++)
{
csvData tempData = dataQueue.dequeue();
dataStack.push(tempData);
}
dataStack.print();
for (int i = 0; i <= 10; i++)
{
csvData tempData = dataStack.pop();
}
//dataQueue.print();
return 0;
}