Search and Build Tree

This is a discussion on Search and Build Tree within the C++ Programming forums, part of the General Programming Boards category; i don't know if that will help you out of not.... geez, this is frustrating... the input file i have ...

  1. #16
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    i don't know if that will help you out of not....

    geez, this is frustrating...

    the input file i have just has a list of 2 names on each line

  2. #17
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    thats what i figured.

  3. #18
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    she's up and working. bam!

    FTree<familyTree>::iterator SearchandLocate(FTree<familyTree> &myFTree,
    FTree<familyTree>::iterator &iteratorFirst, string member)
    {
    if(iteratorFirst != myFTree.end())
    {
    if((*iteratorFirst).name == member)
    {
    return iteratorFirst;
    }

    SearchandLocate(myFTree, iteratorFirst.DownFirst(), member);
    if((*iteratorFirst).name == member)
    return iteratorFirst;
    SearchandLocate(myFTree, iteratorFirst.DownSibling(), member);
    return iteratorFirst;
    }
    return iteratorFirst;

    }

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opinions on custom system build
    By lightatdawn in forum Tech Board
    Replies: 2
    Last Post: 10-18-2005, 04:15 AM
  2. Building B-Tree from Arrays
    By 0rion in forum C Programming
    Replies: 1
    Last Post: 04-09-2005, 02:34 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. Building a Binary Search Tree off sorted data
    By BlackCitan in forum C Programming
    Replies: 0
    Last Post: 12-01-2003, 08:52 PM
  5. using traversal pairs to build a tree
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 05-06-2002, 11:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21