Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,396 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,229 people online right now. Registration is fast and FREE... Join Now!




queue graphical diplay

 
Reply to this topicStart new topic

queue graphical diplay

qaz1134
post 30 Aug, 2008 - 08:34 AM
Post #1


D.I.C Head

**
Joined: 21 May, 2008
Posts: 60



Thanked 1 times
My Contributions


hello guy can you give me some link about displaying a graphical output about queues on array
iam not supposed to post my code because someone else might see it....

my program goes this way

for example
we have for example a single dimensional array with a maximum of 6 indexes



the ouput should be in a box like....
the input

5 [empty]
4 [empty]
3 [4] <- rear
2 [3]
1 [2]
0 [1] <-bottom


now the example output


5 [empty]
4 [5] <- rear // enqueue
3 [4]
2 [3]
1 [2] <-bottom
0 [1]



now second output

5 [6] <- rear // enqueue
4 [5]
3 [4]
2 [3] <-bottom
1 [2]
0 [empty] // dequeue


the 3rd output


5 [6]
4 [5]
3 [4]
2 [3] <-bottom
1 [2]
0 [7] <- rear // i set ctr to fill all indexes so as bottom
// enqueue

now i hope you get what i mean please i need some link or any help about the graphic thing cause i need it to be in box and i dont know how to to it
please dont post wikipidia link because i already went in that site

thank you so much!!!

This post has been edited by qaz1134: 30 Aug, 2008 - 08:40 AM
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 07:21AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month