Write a c++ program to create a dictionary. The dictionary has 26 files (files).
ID: 3682848 • Letter: W
Question
Write a c++ program to create a dictionary. The dictionary has 26 files (files). You may name the files (tables) as a.txt,..... z.txt. Your dictionary class should have at least the following attributes and methods:
#include<iostream>
#include<string>
#include<vector>
using namespace std;
class Dictionary
{
private:
const int maxWordsInDict;
const int maxWordsPerFile;
int totalWordsInDict;
int numOfWordsInFile[26];
static bool failure;
static bool success;
public:
Dictionary();
Dictionary(int dictMaxWords, int fileMaxWords);
bool AddAWord(string word);
bool DeleteAWord(string word);
bool SearchForWord(string word);
bool PrintAFileInDict(string filename);
bool SpellChecking(string fileName);
bool InsertWordsIntoDict(string fileName);
void ProcessTransactionFile();
};
Explanation / Answer
Answer:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.