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