Newer
Older
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
//
// Created by Jake Close on 3/7/18.
//
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include "query/Query.h"
using namespace std;
int main( int argc, char *argv[] )
{
cout << " --- WELCOME EECS 398 SEARCH ENGINE --- " << endl;
cout << endl;
cout << "What would you like to know? " << endl;
cout << endl;
cout << "type -q to exit or -help for more information" << endl;
string q;
while(true)
{
while ( getline( cin, q ) && !q.empty( ))
{
QueryParser *query = new QueryParser( q.c_str( ));
query->search( );
query->printResults( );
}
}
return 0;
}