-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (23 loc) · 697 Bytes
/
main.cpp
File metadata and controls
26 lines (23 loc) · 697 Bytes
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
/*
* gerp.cpp
* Daniel Jarka & Paul Wang
* 12/10/24
*
* CS 15 Project 4: Gerp
*
* This file contains the driver that allows the user to create an instance
* of Gerp and run it. To use Gerp, the client must enter an input Directory
* and the name of an output file to send outputs to. Using this driver,
* gerp will index the inputted directory and ask the user queries to search
* for words inputted by the user.
*/
#include "gerp.h"
#include <fstream>
int main(int argc, char *argv[]) {
if (argc != 3) {
std::cerr << "Usage: ./gerp inputDirectory outputFile" << '\n';
exit(EXIT_FAILURE);
}
Gerp new_gerp(argv[1]);
new_gerp.query(argv[2]);
}