|
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
|