-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
37 lines (27 loc) · 886 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
#include <iostream>
#include <vector>
#include "BusinessNode.h"
#include "RestaurantNode.h"
#include "BusinessList.h"
using namespace std;
int main() {
// vector<BusinessNode*> vect1;
BusinessNode* bus1 = new BusinessNode("Fish market", "1000 West Boylston");
RestaurantNode* rest1 = new RestaurantNode("Take a Break cafe", "5 main street", 3);
RestaurantNode* rest2 = new RestaurantNode("QCC cafe", "670 West Boylston", 5);
// cout << bus1->getDescription() << endl;
// cout << rest1->getDescription() << endl;
// cout << rest2->getDescription() << endl;
// vect1.push_back(bus1);
// vect1.push_back(rest1);
// vect1.push_back(rest2);
// cout << *vect1.at(0) << endl;
//
// delete vect1.at(0);
BusinessList list1;
list1.push_back(bus1);
list1.push_back(rest1);
list1.push_back(rest2);
cout << list1;
return 0;
}