hello,
i want an algorithm coding the algorithm is [ADD A NODE IN DOUBLE LINK LIST]

the algorithm is follow.

instwl( info,forw,back,start,avail,locA,locB,item)

1- if avail=NULL then

write overflow and exit.

2- [remove node from avail list and copy new data into node]

set new=avail
avail=forw[avail]
info[new]=item

3- [insert node into list]

set forw[locA]=new
forw[new]=locB
back[locB]=new
back[new]=locA

4 - EXIT

plz any one send me this algorithm program in c++.as soon as possible this is my assingment i submitted it tomorrow

I think this is what you need. here

oh sure let me get right on that, just for you bro!

You failed yet?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.