-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompress.h
More file actions
32 lines (29 loc) · 1.06 KB
/
Compress.h
File metadata and controls
32 lines (29 loc) · 1.06 KB
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
//
// Created by jpenguin on 1/30/22.
//
#ifndef COMPRESS_H
#define COMPRESS_H
#include <string>
#include <fstream>
using std::ifstream;
using std::ofstream;
using std::string;
class Compress
{
public:
/*******************************************************************************
* Function Name: Compress::GetData()
* Parameters: Pointers to word list, number list, unique word count, word
*count Return Value: void Purpose: Fill array with list of unique words and
*numbered occurrences
*******************************************************************************/
static void GetData(ifstream &, string[], int *, int[], int *);
/*************************************************************************
* Function Name: Compress::Write()
* Parameters: Word list, number list, word count, unique word count
* Return Value: void
* Purpose: Write arrays to file
*************************************************************************/
static void Write(string[], int, int[], int);
};
#endif // COMPRESS_H