| | |
Operating Systems assignment
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
0
#11 Feb 26th, 2003
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
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
•
•
Join Date: Aug 2003
Posts: 37
Reputation:
Solved Threads: 0
0
#12 Feb 26th, 2003
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.
) 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.
0
#14 Mar 1st, 2003
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).
And that was just the pseudocode! The rest is due this thursday ... (tenatively).
0
#16 Mar 1st, 2003
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!
Dare I scream HELP! 0
#17 Mar 1st, 2003
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.
![]() |
Similar Threads
- News Story: Crystal Ball Sunday #5: Operating System Interoperability (Windows NT / 2000 / XP)
- Install multiple operating systems? (IT Professionals' Lounge)
- Two operating systems (IT Professionals' Lounge)
- double boot for running two operating systems (Windows NT / 2000 / XP)
- Operating Systems - choice - simultaneous or alternative (Windows NT / 2000 / XP)
- Windows with 2 operating systems (Windows NT / 2000 / XP)
- Two Operating Systems (how to?) (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: C++ Templates
- Next Thread: question
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






