|
-
Sep 26th, 2003, 01:33 AM
#1
Thread Starter
Fanatic Member
Represent data in a Tree
Hi,
I have the following data in a two dimension array
RaceX/cRaceCar.cpp
RaceX/dsutil.cpp
RaceX/
RaceX/res/bmp_fullroadq11.bmp
RaceX/res/gold_tophy.bmp
It is a path of the files / directories.
I want to represent it in a tree structure.
RaceX
|_______cRaceCar.cpp
|_______dsutil.cpp
|_______res
...............|_______bmp_fullroadq11.bmp
...............|_______gold_tophy.bmp
Please help me with an algorithm...
Currently I am using the following..
1) Sorting the List
2) Printing the list one by one after checking the no of '/'
The Vector Sort doesnt behave as expected...
Any Help is appreciated.
Thanks,
Pradeep
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|