944,200 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 8810
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 26th, 2003
0
Re: Operating Systems assignment
Hmm ... binary trees.... I started the pseudocode with a linked list in my mind, so I basically made all of my traversals linear (e.g. point A straight through to point Z in a single for loop).

Now that I think about it though, a lot of the code requires searching for an entry, so that would def be the best way to go about it.

The problem is that I've never coded a binary tree before in any context. I'm completely confident in the structure and how the pointers operate, I've just never actually coded a whole program from start to finish via a binary tree.

Perhaps that's an option I'll definitely consider though. If I can piece together some pseudocode I'll do it that way. If I find myself getting stuck, I'll resort to the linked list for the time being (until I could come up with a better option).

Another question: straight C has no support for classes, right? Only structs? (not sure of this one, just askin')

thanks!
- Dani
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Feb 26th, 2003
0
Re: Operating Systems assignment
Since the clock is ticking, you may want to do the persuadocode () with the linked list and later when you actually write the program you can change to a binary tree.

And yes, C uses struct. Classes are an OO thing.

One day when I decide to actually learn C# I'll learn what a darn class is (I sort of know...a struct with flared fenders, front and rear spoilers, smoked glass, and a trailer hitch, Ha). I wish C used cout and cin...it would've been a lot easier to use when I learned C.
Reputation Points: 14
Solved Threads: 1
Light Poster
Xelfinn is offline Offline
37 posts
since Aug 2003
Mar 1st, 2003
0
Re: Operating Systems assignment
Cscgal,

I hope your assignment went alright.
Reputation Points: 14
Solved Threads: 1
Light Poster
Xelfinn is offline Offline
37 posts
since Aug 2003
Mar 1st, 2003
0
Re: Operating Systems assignment
Whew! Don't even get me started on the project. Me and my friend worked on it from 9pm Wednesday nite straight through until about 6am the next morning!

And that was just the pseudocode! The rest is due this thursday ... (tenatively).
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Mar 1st, 2003
0
Re: Operating Systems assignment
Well today is only saturday...so you've got plenty of time. Ha!
Reputation Points: 14
Solved Threads: 1
Light Poster
Xelfinn is offline Offline
37 posts
since Aug 2003
Mar 1st, 2003
0
Re: Operating Systems assignment
Yeah but this weekend is mostly going to be spent doing a chemistry lab write-up due Monday, a chemistry pre-lab due Monday, studying 60 pages of the chem textbook for a quiz on Monday, writing a short story for my Prose Writing class which is due on tuesday, making a 5 page website about multimedia in education for a BCIS course which is due Thursday, and finally, if I have enough time, learning C and UNIX system commands so I can *begin* this Operating Systems assignment ... not to mention catching up on a week's worth of sleep b/c I got none all week Dare I scream HELP!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Mar 1st, 2003
0
Re: Operating Systems assignment
Oh shoot! I just remembered I have a chem lab quiz on solutions also on Monday ... in addition to the chem lecture quiz on calculating/deriving reaction rates via calculus. Oh well.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Mar 1st, 2003
0
Re: Operating Systems assignment
Sheesh, you're giving me flashback nightmares. I can feel that little knot in my stomach again. Ha.
Reputation Points: 14
Solved Threads: 1
Light Poster
Xelfinn is offline Offline
37 posts
since Aug 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Tutorials
Next Thread in C++ Forum Timeline: question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC