N
Niks
Hey..
I tried to creat a linked list by using a structure defined in a class
as follows:
class LL
{
struct node
{
int data;
node *next,*previous
}*head,*tail;
};
(This is not exactly the node that I have.Its a bit bigger.)
On this I wrote the fucntions such as add nodes, delete nodes etc.
Now the problem is that after creating some nodes, the TC compiler
stops abruptly and exits to windows.
The number of nodes after which this happens is not fixed.
The maximum number of nodes that i was able to creat was 13 and once i
could creat only 2 nodes .... on the third one it stopped.
Please help me....
Thanks for reading.
I tried to creat a linked list by using a structure defined in a class
as follows:
class LL
{
struct node
{
int data;
node *next,*previous
}*head,*tail;
};
(This is not exactly the node that I have.Its a bit bigger.)
On this I wrote the fucntions such as add nodes, delete nodes etc.
Now the problem is that after creating some nodes, the TC compiler
stops abruptly and exits to windows.
The number of nodes after which this happens is not fixed.
The maximum number of nodes that i was able to creat was 13 and once i
could creat only 2 nodes .... on the third one it stopped.
Please help me....
Thanks for reading.