Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 01-22-2008, 12:03 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is online now
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,421
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

Quote:
Originally Posted by Zael View Post
I don't understand how is it possible to solve this problem with binary tree if it has to be possible that one folder can consist of many subfolders and documents (not only 2, which is the main idea of binary tree)???

I've been trying to do anything, and my time is running out if I knew anyone here In Zagreb (Croatia) I would already pay and try to understand the code on my own. As far as it goes, i'll get nowhere, and the teacher won't let me go on easy as it seams.. 2 weeks and I still got nowhere, sounds bad as hell. If someone could make this program for me, I would be mostly grateful.

Anyway thx for enormous help
You trace through all the objects in a folder by following its child's brothers (follow only brother pointers). The main point of a binary tree is that there are two child pointers. With the structure I gave, you would be using a slightly non-standard interpretation of what left/right child means. Instead you would view it as First-SubFolder-Content / Next-CurrentFolder-Content.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-22-2008, 03:09 PM
Zael's Avatar   
Zael Zael is offline
Newbie
 
Join Date: Jan 2008
Posts: 11
Rep Power: 0
Zael is on a distinguished road
Default

Ok i unfortunetly give up..

I have a plan, which includes at least something from the imagined exam. On Friday I am going to hand over a sample of a general tree, no metter of the details, hierarchy, folders and documents..
It's going to be a simple general tree with > than 2 children. I believe it is a recommended start because I obviously don't understand some theory basics...

So here is my (and hopefully Our) new quest. I just need a working code with premade functions. I hope someone has what I am looking for, because it's an unavoidable topic for everyone who deals with structures and algorythms. Please post it here, I'll examine, study and retell my menthor things I actually understand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-22-2008, 10:08 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

The code I posted, in my opinion, is rather easy to understand. I just need to figure out the memory access violation error that keeps popping up. You might want to take a close look at it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I got estonian exam today! Jaan The Lounge 4 06-09-2007 08:31 AM
Exam objectives. sania21 Java Help 2 05-22-2007 01:01 AM
Why are comments important? Sionofdarkness Java Help 10 07-29-2006 12:32 PM


All times are GMT -5. The time now is 10:54 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 101%


Complete - Celebrate!

Ads