Click here to Skip to main content
15,908,675 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trim away the last part of a string Pin
Support12310-Sep-06 18:55
Support12310-Sep-06 18:55 
GeneralRe: Trim away the last part of a string Pin
lmoelleb10-Sep-06 20:43
lmoelleb10-Sep-06 20:43 
GeneralRe: Trim away the last part of a string Pin
Support12310-Sep-06 22:36
Support12310-Sep-06 22:36 
AnswerRe: Trim away the last part of a string Pin
Arjun "Mjolnir" Bahree10-Sep-06 22:46
Arjun "Mjolnir" Bahree10-Sep-06 22:46 
GeneralRe: Trim away the last part of a string Pin
lmoelleb10-Sep-06 23:08
lmoelleb10-Sep-06 23:08 
QuestionMDI Forms Pin
Steve_c#freak10-Sep-06 18:03
Steve_c#freak10-Sep-06 18:03 
AnswerRe: MDI Forms Pin
Ranjan Banerji11-Sep-06 18:13
Ranjan Banerji11-Sep-06 18:13 
GeneralRe: MDI Forms Pin
Steve_c#freak12-Sep-06 13:33
Steve_c#freak12-Sep-06 13:33 
GeneralRe: MDI Forms Pin
Ranjan Banerji12-Sep-06 17:15
Ranjan Banerji12-Sep-06 17:15 
QuestionHelp me Pin
Niiiissssshhhhhuuuuu10-Sep-06 17:52
Niiiissssshhhhhuuuuu10-Sep-06 17:52 
AnswerRe: Connecting to radio server Pin
Guffa10-Sep-06 18:39
Guffa10-Sep-06 18:39 
GeneralRe: Connecting to radio server Pin
Niiiissssshhhhhuuuuu10-Sep-06 20:38
Niiiissssshhhhhuuuuu10-Sep-06 20:38 
Questionhow to get delegate parameters :sigh: Pin
g00fyman10-Sep-06 17:02
g00fyman10-Sep-06 17:02 
Question.NET 3 / WPF and simple stuff like "docking"? Pin
Jörgen Sigvardsson10-Sep-06 13:25
Jörgen Sigvardsson10-Sep-06 13:25 
AnswerRe: .NET 3 / WPF and simple stuff like "docking"? Pin
Judah Gabriel Himango10-Sep-06 13:41
sponsorJudah Gabriel Himango10-Sep-06 13:41 
GeneralRe: .NET 3 / WPF and simple stuff like "docking"? Pin
Jörgen Sigvardsson10-Sep-06 13:49
Jörgen Sigvardsson10-Sep-06 13:49 
AnswerRe: .NET 3 / WPF and simple stuff like "docking"? Pin
Steve Bickell10-Sep-06 20:22
Steve Bickell10-Sep-06 20:22 
QuestionUsing Array LIst Pin
aynka200010-Sep-06 7:23
aynka200010-Sep-06 7:23 
AnswerRe: Using Array LIst Pin
Judah Gabriel Himango10-Sep-06 7:35
sponsorJudah Gabriel Himango10-Sep-06 7:35 
GeneralRe: Using Array LIst Pin
aynka200010-Sep-06 8:55
aynka200010-Sep-06 8:55 
GeneralRe: Using Array LIst Pin
Nader Elshehabi10-Sep-06 9:16
Nader Elshehabi10-Sep-06 9:16 
QuestionUsing Binary Trees Pin
aynka200010-Sep-06 7:14
aynka200010-Sep-06 7:14 
AnswerRe: Using Binary Trees Pin
User 665810-Sep-06 7:37
User 665810-Sep-06 7:37 
Your implementation has several flaws.
1) You don't need two classes Tree and Node, you can merge them into one.
2) methods like AddNode(), RemoveNode() and Search() have to be public
3) the contructor of a Node/Tree should ideally have a value parameter, like Tree(int value)
4) you don't need a root node in your tree, left and right childs are enough
5) when adding/searching/removing check for < and >= and not just > and <

Once you fix that, you may use it like that:

Tree binTree = new Tree(5);
binTree.Add(10);
binTree.Add(3);


There are lots of bintree examples on the internet, you can almost copy them 1 to 1, even the Java ones Wink | ;)

regards

modified 12-Sep-18 21:01pm.

QuestionRe: create a PKI certificate with RSA public/private key. Pin
edchan10-Sep-06 4:25
edchan10-Sep-06 4:25 
AnswerRe: create a PKI certificate with RSA public/private key. Pin
Nader Elshehabi10-Sep-06 5:03
Nader Elshehabi10-Sep-06 5:03 

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.