Search Result

Collapse
9 results in 0.0027 seconds.
Keywords
Members
Tags
tree
  •  

  • Is it possible to derive a tree from two different parent classes in C++?

    Hi guys, I’ve been given a task in which my teachers even cannot help me through! I wonder how can I derive a tree from two different parent classes in C++; i.e. which parameters should be from the first and which from the second? I tried putting the left and right pointers in the second and the data in the first, but due to the difference in types, I am not able to use them?
    Thanks by the way,
    See more | Go to post

  • Laura Wilkinson
    started a topic Binary Tree Help!!
    in C

    Binary Tree Help!!

    Hi All,

    I am creating a license plate recognition system for my coursework and I need to incorporate a binary tree. The examples that I have seen have been quite general and I am unsure of how my code will work with it.

    The code below is what I have produced;

    Code:
    void displayC(CarC* cPtr)
    {
    	cout << "Car Registration: " <<  cPtr->carRegistration <<
    ...
    See more | Go to post

  • karthikselvakum
    started a topic Dict of dicts object to a graphical tree

    Dict of dicts object to a graphical tree

    I tried pygraphviz and passed dict of dicts object to it but i Only got a single level of the dict object not the entire tree . Please help me to draw a entire tree with dict object .

    Object is something like :

    >>> t
    {'outlook': {'rainy': {'windy': {'FALSE': 'yes', 'TRUE': 'no'}}, 'overcast': 'yes', 'sunny': {'humidity': {'high': 'no', 'normal': 'yes'}}}}
    >>> A=AGraph(t)
    >>>...
    See more | Go to post

  • Converting an existing structure to a tree structure

    Hello, I was wondering how I would convert an existing structure to a tree. What I want is basically a family tree. What I have is the following:

    array (

    array(id => 123, p1 => 567, p2 => 765),
    array(id => 321, p1 => 567, p2 => 890),
    array(id => 333, p1 => 123, p2 => null),
    array(id => 444, p1 => null, p2 => null),
    etc.

    );

    It's...
    See more | Go to post

  • zealman
    started a topic Tree
    in Java

    Tree

    Code:
    import java.util.*;
    import java.io.*;
    import java.math.*;
    import java.awt.event.*; 
    
    class Node
    {
    	String ortu,isi;
    	int jumanak,jumchild;
    	Node child[] = new Node[5];
    public Node(String parent, String a)
    	{
    		ortu=parent;
    		isi=a;
                    jumanak=jumchild;
    	}
    }
    
    public class tree 
    {
    private Node root;
    ...
    See more | Go to post
    Last edited by Markus; May 7 '10, 11:28 AM. Reason: Added [code] tags

  • How to Display a dynamic tree structure which populates data from a database

    Hi
    I request you to kindly help me with the code for a reusable tree structure component that displays a tree view as displayed in the attachment.

    Consider a table named : Employee with the following fields

    Emp_Fname Emp_Lname Emp_Contact Emp_Salary
    John Todlee 7539512 31540
    Macy Hunter 7865512 15000
    Steve Abley 7964812 32656
    Tom Proctor 7646879 56456

    I need to pass...
    See more | Go to post

  • neetlife
    started a topic building tree from a list of nodes
    in Java

    building tree from a list of nodes

    Hi. There's this tree I need to build, and I'm having problems with it.

    I have to read the nodes from a file, which are sorted inorder, and have marker nodes to show where branches end. For example, I have two text files here, with what the trees should look like under them.
    Code:
    nodeA          nodeA
    nodeB          nodeB
    nodeC          nodeC
    endnodeC       endnodeC
    nodeD          endnodeB
    ...
    See more | Go to post

  • furqi
    started a topic tree view control

    tree view control

    hey there i have made a tree view control and i am having a problem that my data is not displaying on the screen can any body solve my problem


    here below is the code

    Code:
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" 
                DataFile="~/App_Data/treedata.xml" XPath="\treedata" 
                TransformFile="~/App_Data/xslfile.xslt"></asp:XmlDataSource>
    ...
    See more | Go to post

  • GaryTexmo
    started a topic "Generic" QuadTree implementation

    "Generic" QuadTree implementation

    For a project I'm working on I had need of a QuadTree to give me quick and easy access to objects within a given bounds. I learned quite a bit working on it and thought it might be a good idea to share the code with the Bytes community.

    To use it, create a new QuadTree and tell it what area it's going to cover. Then simply insert objects into it using the Insert method. You can use the Remove method to take objects out. On a removal,...
    See more | Go to post
Working...