Welcome!
Log In
Create A New Profile
Home
>
2009
>
COS211X
> Topic
Advanced
Ass4 Ques5
Posted by
cbrunsdonza
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
cbrunsdonza
Ass4 Ques5
August 11, 2009 12:36AM
Registered: 16 years ago
Posts: 1,268
Rating: 0
OK, so I'm stuck on completing Q5 (and I know it was due Friday)...
I've got the sudo code but just cannot get it to work. I'm struggling to pass a pointer to std::queue.push() !!!!!!!!
Has anyone gotten this right, or did you just submit your code in psudo form ...??
--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
Reply
Quote
cbrunsdonza
Re: Ass4 Ques5
August 11, 2009 12:39AM
Registered: 16 years ago
Posts: 1,268
Rating: 0
Wait, found the solution .... duh ..... teach me to code at 00:30 !!!!!!!!!!
Released it was something really basic - how I hate coding in PHP during the day and then C++ at night. PHP sends my brain into a dead zone.
FYI:
problem : queue<elemType> q;
solution: queue<nodeType<elemType> *> q;
Output:
BreadtheFirst Traversal
13 6 17 48 33 27 42
Done
--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
Reply
Quote
robanaurochs
Re: Ass4 Ques5
August 11, 2009 08:27AM
Registered: 18 years ago
Posts: 1,424
Rating: 0
Cool. At least you won't forget it again.
People should never be chastised for making mistakes, it's the best way we learn (hopefully)
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login