-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStopWords.h
More file actions
39 lines (29 loc) · 800 Bytes
/
StopWords.h
File metadata and controls
39 lines (29 loc) · 800 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
36
37
38
/*
* File: StopWords.h
* Author: carter
*
* Created on September 6, 2012, 1:30 PM
*
* This is my StopWords class, its job is to hold all of the stop word for the book
* The stop words are words to not included in the index
* the words will be stored a char** and will include variables to record the array's size and capacity
*/
#ifndef STOPWORDS_H
#define STOPWORDS_H
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "HashTable.h"
using namespace std;
class StopWords {
public:
StopWords();
void readInStopWords(); //read data from file function
string getStopWord(int); //returns the designated stop word
int getSize();
virtual ~StopWords();
private:
Dictionary<int, string>* stopWords;
int keyValue;
};
#endif /* STOPWORDS_H */