Click here to Skip to main content
15,891,033 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: how to declare array of object Pin
SteelModule28-Jul-10 5:06
SteelModule28-Jul-10 5:06 
GeneralRe: how to declare array of object Pin
Dave Doknjas28-Jul-10 5:20
Dave Doknjas28-Jul-10 5:20 
GeneralRe: how to declare array of object Pin
SteelModule28-Jul-10 21:49
SteelModule28-Jul-10 21:49 
QuestionDATASET to sqlite.net Pin
ajaxswan4-Jan-10 15:38
ajaxswan4-Jan-10 15:38 
QuestionSystem::String ^ to LPCVOID conversion? [modified] Pin
Mattzimmerer2-Jan-10 10:42
Mattzimmerer2-Jan-10 10:42 
AnswerRe: System::String ^ to LPCVOID conversion? Pin
Richard MacCutchan2-Jan-10 22:04
mveRichard MacCutchan2-Jan-10 22:04 
Questioncoding help Pin
helawae31-Dec-09 19:52
helawae31-Dec-09 19:52 
AnswerRe: coding help Pin
N a v a n e e t h1-Jan-10 3:03
N a v a n e e t h1-Jan-10 3:03 
helawae wrote:
best data structure to represent the thesaurus,


Are you trying to represent the whole thesaurus in memory?

helawae wrote:
i have so far considered trees and linked lists as a possible solution, the tree for storing the words and the linked list for returning the set of synonyms but i do not know how to store the words in the tree for best searching and how to link up the tree with the linked list..


Tree and linked lists seems to be good choice. Each node represents a term and contains a list of related terms. This can nest up to any level. However, keeping the whole thesaurus in memory and searching in it is quite inefficient. I'd suggest to keep the data in a database and query against it when you need a lookup. Load the term and related terms into the above said data structure and return. You can load each level of this tree on demand. So you will not waste any memory by storing data that you don't need.

helawae wrote:
direct me in how to start the coding in C++ or C# would be a great help.


Take a look at file based databases like SqlLite. Create relational tables and keep the data inside it. Probably two tables, one is the master list of all terms and second one is the relationships. When you need to do a lookup, join both tables and get the data.

Hope that helps

Smile | :)

Best wishes,
Navaneeth

GeneralRe: coding help Pin
helawae3-Jan-10 21:56
helawae3-Jan-10 21:56 
GeneralRe: coding help Pin
N a v a n e e t h7-Jan-10 18:06
N a v a n e e t h7-Jan-10 18:06 
GeneralRe: coding help Pin
helawae9-Jan-10 20:41
helawae9-Jan-10 20:41 
GeneralRe: coding help Pin
N a v a n e e t h10-Jan-10 3:11
N a v a n e e t h10-Jan-10 3:11 
QuestionVC C++ 2005 Error Create Register in clr form Pin
ajaxswan27-Dec-09 16:12
ajaxswan27-Dec-09 16:12 
AnswerRe: VC C++ 2005 Error Create Register in clr form Pin
Luc Pattyn28-Dec-09 1:26
sitebuilderLuc Pattyn28-Dec-09 1:26 
QuestionSyncronize Two ComboBox in visual c++ Pin
johnjitu22-Dec-09 23:40
johnjitu22-Dec-09 23:40 
AnswerRe: Syncronize Two ComboBox in visual c++ Pin
N a v a n e e t h23-Dec-09 20:08
N a v a n e e t h23-Dec-09 20:08 
QuestionC# send structure objects through socket Pin
ikurtz18-Dec-09 6:03
ikurtz18-Dec-09 6:03 
AnswerRe: C# send structure objects through socket Pin
Paulo Zemek18-Dec-09 8:29
mvaPaulo Zemek18-Dec-09 8:29 
GeneralRe: C# send structure objects through socket Pin
ikurtz18-Dec-09 8:46
ikurtz18-Dec-09 8:46 
GeneralRe: C# send structure objects through socket Pin
Mark Salsbery18-Dec-09 9:29
Mark Salsbery18-Dec-09 9:29 
GeneralRe: C# send structure objects through socket Pin
ikurtz18-Dec-09 9:42
ikurtz18-Dec-09 9:42 
AnswerRe: C# send structure objects through socket Pin
N a v a n e e t h18-Dec-09 15:38
N a v a n e e t h18-Dec-09 15:38 
QuestionIssue Reading and Writing to Serial Port Pin
BubbaGeeNH17-Dec-09 5:38
BubbaGeeNH17-Dec-09 5:38 
AnswerRe: Issue Reading and Writing to Serial Port Pin
Rick Shaub18-Dec-09 9:05
Rick Shaub18-Dec-09 9:05 
GeneralRe: Issue Reading and Writing to Serial Port Pin
BubbaGeeNH22-Dec-09 3:59
BubbaGeeNH22-Dec-09 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.