Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. building a Binary Tree Class

building a Binary Tree Class

Scheduled Pinned Locked Moved C#
csharpvisual-studiodata-structurestutorialquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nickmacon
    wrote on last edited by
    #1

    Okay, looking through a book "Microsoft Visual C# 2005 Step by Step" 2005 Edition form Microsoft at the binary tree class they try to setup. I'm using Visual Studio 2003 to try to compile the code, but they said to use 2005. This code right here doesn't work public class Tree where T : Icomparable Is this code specific to 2005 Visual Studio? Do I even need to use ""? Can anybody point me in the right direction. I will be creating a binary tree visaulizer program that draws out the different nodes and branches. What fun? Any ideas or comments are greatly appreciated. Thanks, Josh

    P 1 Reply Last reply
    0
    • N nickmacon

      Okay, looking through a book "Microsoft Visual C# 2005 Step by Step" 2005 Edition form Microsoft at the binary tree class they try to setup. I'm using Visual Studio 2003 to try to compile the code, but they said to use 2005. This code right here doesn't work public class Tree where T : Icomparable Is this code specific to 2005 Visual Studio? Do I even need to use ""? Can anybody point me in the right direction. I will be creating a binary tree visaulizer program that draws out the different nodes and branches. What fun? Any ideas or comments are greatly appreciated. Thanks, Josh

      P Offline
      P Offline
      Pablo Hernandez Valdes
      wrote on last edited by
      #2

      The code used in the book doesn't work because they are making a generic class, and it only works in C# 2.0 that comes with Visual Studio 2005. The class can be modified so it can compile with VS 2003, but you will need to change all the code that uses the class. Hope this helps :) Pablo Hernandez Valdes

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups