Simple C++ programs

Job ID: 34764001

Budget: $10 – $30 CAD

On a weekly basis 2 simple C++ programs need to be delivered, using basic standard libraries.
An example:

The Input File
The words will be loaded from a file. The file format is fixed. structure and always will be like that (no error checking is required for reading from the file).

Each word will be like so:

good
adjective: of high quality.
adjective: (of a thread, filament, or person's hair) thin.
noun: very small particles found in mining, milling, etc.
adverb: in a satisfactory or pleasing manner; very well.

\t as a first character of the each definition
the type of the word (noun, verb, adjective, etc.); this is an array of characters that doesn't contain blanks
: a separator between the type of the word and the definition
the rest of the characters in the line are part of the definition for the word.
each word after its definition will be separated by a blank line.

- Maximum 100 words with their definitions in the file.
- Each word can have maximum 8 definitions.
- A word that is defined and the type of the word can have maximum 64 characters,
- Text of a definition can have maximum 1024 characters.
These numbers as constant.

so the program should comes with the following functions:
int LoadDictionary(const char* filename);
void SaveDictionary(const char* filename);
void DisplayWord(const char* word);
void AddWord(const char* word, const char* type, const char* definition);
int UpdateDefinition(const char* word, const char* type, const char* definition);
Related categories: C Programming C++ Programming