Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,046 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,527 people online right now. Registration is fast and FREE... Join Now!




Mnemonic Dictionary (how to start this program)

 
Reply to this topicStart new topic

Mnemonic Dictionary (how to start this program)

kamikaze99
17 Jul, 2008 - 04:40 AM
Post #1

New D.I.C Head
*

Joined: 17 Jul, 2008
Posts: 7

Examples of mnemonic are :
Mnemonic Meaning
thk thank you
c u see you
J 4 U just for you
e the
c With
asap as soon as possible

The content of the mnemonic and its meaning is stored in a text file.
Design the necessary classes and member functions to achieve the following tasks :
a. Allow user to edit the dictionary in one of the following ways :
i. Add a mnemonic and its meaning
ii. Delete a mnemonic and its meaning
iii. Modify an existing mnemonic and its meaning in the dictionary
b. Display a menu and clear instructions on how to use the dictionary.
The program will continue to display the menu until a ‘Q’ is entered to quit.
c. Allow user to look up the meaning of a mnemonic.
d. Allow user to list all the mnemonics in the dictionary.
User is offlineProfile CardPM
+Quote Post

lordms12
RE: Mnemonic Dictionary (how To Start This Program)
17 Jul, 2008 - 05:44 AM
Post #2

D.I.C Regular
Group Icon

Joined: 16 Feb, 2008
Posts: 314



Thanked: 14 times
Dream Kudos: 225
My Contributions
You can use HashTable if the number of mnemonics is not large.

I do not think it is good because of collisions and every thing have to be loaded in memory so if someone know better solution!
User is offlineProfile CardPM
+Quote Post

kamikaze99
RE: Mnemonic Dictionary (how To Start This Program)
17 Jul, 2008 - 05:58 AM
Post #3

New D.I.C Head
*

Joined: 17 Jul, 2008
Posts: 7

can i use notepad to store the number of mnemonics because the amount of data is small ?
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 04:58PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month