#include<iostream>
#include<fstream>
#include<string>
#include<map>
#include"YahooTree.h"
#include"URL.h"
using namespace std;
int main() {
ifstream opendir("//Engr_asu/ECE352/computer_science.txt");
if (opendir == 0) {
cout << "Could not open input file" << endl;
}
YahooTree cs;
opendir >> cs; opendir.close();
ifstream od("//Engr_asu/ECE352/computer_science.txt");
if (od == 0) {
cout << "Could not open input file" << endl;
}
map<string, URL> m; URL next;
while (od >> next) {
m[next.getURL()] = next;
}
cs.printAsHTML(m); od.close();
return 0;
}