Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: how Access to the default page other Webhost Pin
Pete O'Hanlon4-Apr-11 1:40
mvePete O'Hanlon4-Apr-11 1:40 
QuestionVideo stream modifications Pin
onionRings3-Apr-11 13:10
onionRings3-Apr-11 13:10 
AnswerRe: Video stream modifications Pin
OriginalGriff3-Apr-11 21:39
mveOriginalGriff3-Apr-11 21:39 
AnswerRe: Video stream modifications Pin
Catalin Briciu4-Apr-11 12:18
Catalin Briciu4-Apr-11 12:18 
AnswerRe: Video stream modifications Pin
Michael900017-Apr-11 20:26
Michael900017-Apr-11 20:26 
GeneralRe: Video stream modifications Pin
onionRings31-May-11 4:34
onionRings31-May-11 4:34 
QuestionGeneric programming help Pin
shivamkalra3-Apr-11 6:46
shivamkalra3-Apr-11 6:46 
AnswerRe: Generic programming help Pin
David19873-Apr-11 7:00
David19873-Apr-11 7:00 
note: Comparable<T> is the Java version, in C# it's IComparable<T>
The problem is that data would have to be IComparable<E> and E both at the same time - that could be the case, but it is not guaranteed (you could try to feed it an invalid type, and C# generics aren't C++ templates). So you must constrain the type E to be Comparable<E> in the class definition of the Binary Search Tree (and/or Node, depending on whether it is a nested type or not)
C#
class BST<E> where E : IComparable<E>
{
    E data;
    // etc
}

GeneralRe: Generic programming help Pin
shivamkalra3-Apr-11 8:08
shivamkalra3-Apr-11 8:08 
GeneralRe: Generic programming help Pin
David19873-Apr-11 8:16
David19873-Apr-11 8:16 
GeneralRe: Generic programming help Pin
shivamkalra3-Apr-11 8:39
shivamkalra3-Apr-11 8:39 
Questionkeyboard dont appear Pin
behzadcp2-Apr-11 18:25
professionalbehzadcp2-Apr-11 18:25 
AnswerRe: keyboard dont appear Pin
R. Giskard Reventlov2-Apr-11 23:40
R. Giskard Reventlov2-Apr-11 23:40 
AnswerRe: keyboard dont appear Pin
RaviRanjanKr6-Apr-11 19:29
professionalRaviRanjanKr6-Apr-11 19:29 
QuestionHou to dll in Visual Studio without using console? Pin
nstk2-Apr-11 5:30
nstk2-Apr-11 5:30 
AnswerRe: Hou to dll in Visual Studio without using console? Pin
Luc Pattyn2-Apr-11 5:54
sitebuilderLuc Pattyn2-Apr-11 5:54 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
nstk2-Apr-11 7:34
nstk2-Apr-11 7:34 
AnswerRe: Hou to dll in Visual Studio without using console? Pin
Luc Pattyn2-Apr-11 7:41
sitebuilderLuc Pattyn2-Apr-11 7:41 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
Albert Holguin2-Apr-11 8:13
professionalAlbert Holguin2-Apr-11 8:13 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
nstk2-Apr-11 23:12
nstk2-Apr-11 23:12 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
Albert Holguin3-Apr-11 5:44
professionalAlbert Holguin3-Apr-11 5:44 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
nstk3-Apr-11 23:19
nstk3-Apr-11 23:19 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
Albert Holguin4-Apr-11 3:43
professionalAlbert Holguin4-Apr-11 3:43 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
nstk4-Apr-11 7:33
nstk4-Apr-11 7:33 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
Albert Holguin4-Apr-11 11:03
professionalAlbert Holguin4-Apr-11 11: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.