-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.cpp
More file actions
35 lines (28 loc) · 747 Bytes
/
Copy pathexample.cpp
File metadata and controls
35 lines (28 loc) · 747 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
27
28
29
30
31
32
33
34
35
#include "mkmh.hpp"
#include <string>
#include <iostream>
using namespace std;
using namespace mkmh;
int main(int argc, char** argv){
int hashSize = 1000;
int kSize = 10;
if (argc < 2){
cerr << "Usage:" << endl
<< "example <fileToHash> [<filetoCompare>]" << endl;
exit(1);
}
else if (argc == 2){
cerr << "Hashing " << argv[1] << "..." << endl;
string input = string(argv[1]);
}
else if (argc == 3){
cerr << "Hashing " << argv[1] << " and " << argv[2] <<
" and calculating their similarity..." << endl;
}
else{
cerr << "Usage:" << endl
<< "example <fileToHash> [<filetoCompare>]" << endl;
exit(1);
}
return 0;
}