-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmydiff.cpp
More file actions
35 lines (33 loc) · 688 Bytes
/
mydiff.cpp
File metadata and controls
35 lines (33 loc) · 688 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
//
// Created by John Chen on 2019-09-24.
//
#define ASN1_MANAGE_H
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
#include <errno.h>
#include <grp.h>
#include <time.h>
#include <stdio.h>
#include <ftw.h>
#include <fstream>
#include <dirent.h>
#include <unistd.h>
#include <vector>
#include "Manage.h"
using namespace std;
/**
* compares two files named as parameters to this command with one another
* and reports if they are the same or different.
* @param argc
* @param argv
* @return 0
*/
int main (int argc, char* argv[])
{
Manage diffManage (argv[1]);
// Compare() handles everything
diffManage.Compare(argv[2]);
return 0;
}