Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Dictionary in C++ (http://www.programmingforums.org/showthread.php?t=8496)

Cthulhu Feb 21st, 2006 3:01 AM

Dictionary in C++
 
Hi, i would like an advice here. I want to make a language dictionary application in Visual C++. It won't be online. It'll be something like oxford dictionary. So the entries will be a lot and i think that Access ain't what i need. Anybody has a suggestion on what kind of database should i use?

Polyphemus_ Feb 21st, 2006 3:20 AM

If you only use it for yourself, I would choose MySQL (since that's the only one I know ;)). I doubt that other users would take the time to install and set up MySQL, though.

Cthulhu Feb 21st, 2006 4:41 AM

Quote:

Originally Posted by Polyphemus_
If you only use it for yourself, I would choose MySQL (since that's the only one I know ;)). I doubt that other users would take the time to install and set up MySQL, though.

That's what i'm talking about. This app will be installable and redistributable. I'm sure there's a way to this, otherwise there wouldn't be any elctronic dictionary...... :)

DaWei Feb 21st, 2006 8:32 AM

One can build a balsa "throw it across the yard" thangy, or a radio-controlled model airplane (up to 1/4 scale, even) or a Cessna 182 RG or a Boeing 747. It's just a matter of skill, pocket depth, and marketing/organizational expertise.

Infinite Recursion Feb 21st, 2006 8:50 AM

I'd probably go with MySQL also... MS Access is fairly limited for numerous tuples.
If you don't want the end user having to install a MySQL database server, you could host a centralized database and have the clients connect over TCP/UDP or you can give SQLite a shot... a self containted database endgine. You can find SQLite here: http://www.sqlite.org/

Cthulhu Feb 21st, 2006 8:51 AM

Quote:

Originally Posted by DaWei
One can build a balsa "throw it across the yard" thangy, or a radio-controlled model airplane (up to 1/4 scale, even) or a Cessna 182 RG or a Boeing 747. It's just a matter of skill, pocket depth, and marketing/organizational expertise.

Well, these are smart words, but not helpfull in my case......:) You could be more accurate, i'm sure about that......The simple reason is that i asked something else....

nnxion Feb 21st, 2006 9:12 AM

Quote:

Originally Posted by Cthulhu
Well, these are smart words, but not helpfull in my case......:) You could be more accurate, i'm sure about that......The simple reason is that i asked something else....

You say they are smart words yet you do not understand. What DaWei is saying is that it depends on how big your application is, if your project is a hobby project then you might want a different database then if you were writing a heavily financed government application. I'd probably go for a self containted database engine like IR says.

MBirchmeier Feb 21st, 2006 9:13 AM

I've thought about doing something like this before most of my ideas relied on the same principle:

Each letter can be followed by 26 other letters, or can end. so each 'letter' structure would be arranged as the following
:

letter
{
  letter*[26] next letter; // pointers to the next letter
  string* definition;        // pointer to definition
}

so 'candy' would be
:

'c' -> 'a' -> 'n' -> 'd' -> 'y'
              |            |-> definition for candy
              |-> definition for can


obviously I didn't include all 'letter' links but each layer would have its own links on down the line, hope this helps.

-MBirchmeier

DaWei Feb 21st, 2006 9:16 AM

There's an old article in DDJ regarding the use of a trinary tree for an approach similar to MBirchmeier's.

Quote:

The simple reason is that i asked something else....
Indeed you did. Unconsidered repercussions are mighty project killers. Thus my "unsolicited" comments. I reserve the right to continue to make them, as I consider them to be often as useful as "Don't use GoTo."

Cthulhu Feb 22nd, 2006 2:09 AM

Quote:

Originally Posted by DaWei
Indeed you did. Unconsidered repercussions are mighty project killers. Thus my "unsolicited" comments. I reserve the right to continue to make them, as I consider them to be often as useful as "Don't use GoTo."

I really didn't mean to be aggresive, if i gave such an impression. I thought that i was quite clear when posting the first request. This is going to be a language dictionary. That is, it's going to have as much entries as the dictionary of greek has, let's say more than 100.000. :) word-definition-phonological form--search by word, search by phoneme, search by morpheme. I took a look at "oxford dictionary of contemporary english" and i saw that it uses, apart from other stuff, some .dic files, if that helps.

This very intriguing for me as i want to make a good project for my postgraduate essay in linguistics. I'm willing to do what it takes to accomplish


All times are GMT -5. The time now is 9:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC