469,913 Members | 1,953 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

Multiple Array Linked List

hi
i create a c program ,which waas doing operation of linked
list.......in single linked list it is working properly, but i want
multiple linked list of same member... i am using array of memeber.. it
give error? i tried all ways and also search in neet and google
group.........i wasnt find it.........so if any other methods is know
tell ...

ex i have one struct ,i want crearte multiple object for struct
........each object is different linked list

Thank u
by
CNS

Nov 15 '05 #1
3 3389
chellappa wrote:
i create a c program ,which waas doing operation of linked
list.......in single linked list it is working properly, but i want
multiple linked list of same member... i am using array of memeber.. it
give error? i tried all ways and also search in neet and google
group.........i wasnt find it.........so if any other methods is know
tell ...


You can not generally put the same object into two different linked lists,
but you can put a pointer to an object into different lists.

If that was not what you wanted, I don't have a clue - maybe give an
example of what you want and use complete sentences.

Uli

Nov 15 '05 #2
chellappa wrote on 06/08/05 :

[Your '.' key is dirty and you capslock key is broken ... Time to get a
new keyboard ?]
I create a c program, which was doing operation of linked
list. in single linked list it is working properly, but i want
multiple linked list of same member... I am using array of member... it
give error?


What error ? Where is your code ? Are we supposed to be psychic ?

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"Mal nommer les choses c'est ajouter du malheur au
monde." -- Albert Camus.
Nov 15 '05 #3
Ulrich Eckhardt wrote:
chellappa wrote:
i create a c program ,which waas doing operation of linked
list.......in single linked list it is working properly, but i want
multiple linked list of same member... i am using array of memeber.. it
give error? i tried all ways and also search in neet and google
group.........i wasnt find it.........so if any other methods is know
tell ...
You can not generally put the same object into two different linked lists,
but you can put a pointer to an object into different lists.


It's entirely possible for an object to be a member
of several linked lists, even without using a separate
pointer. Here's a struct one might use in a two-way
linked representation of a sparse matrix:

struct cell {
double value;
int row, col;
struct cell *right;
struct cell *down;
};
If that was not what you wanted, I don't have a clue - maybe give an
example of what you want and use complete sentences.


Seconded, heartily.

--
Eric Sosman
es*****@acm-dot-org.invalid

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by M. Katz | last post: by
5 posts views Thread by Jeffrey Silverman | last post: by
19 posts views Thread by RAJASEKHAR KONDABALA | last post: by
9 posts views Thread by Goh, Yong Kwang | last post: by
2 posts views Thread by chellappa | last post: by
3 posts views Thread by chellappa | last post: by
6 posts views Thread by Nick Valeontis | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.