473,386 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3547
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: M. Katz | last post by:
I'm trying to create a heirarchical linked list of sorts, and I'm looking for advice as to how best to set up the arrays. In other languages, I might use a pointer array to other pointer arrays,...
5
by: Jeffrey Silverman | last post by:
Hi, all. I have a linked list. I need an algorithm to create a tree structure from that list. Basically, I want to turn this: $list = array( array( 'id' => 'A', 'parent_id' => null, 'value'...
19
by: RAJASEKHAR KONDABALA | last post by:
Hi, Does anybody know what the fastest way is to "search for a value in a singly-linked list from its tail" as oposed to its head? I am talking about a non-circular singly-linked list, i.e.,...
9
by: Goh, Yong Kwang | last post by:
I'm currently doing a project that has a array that supposed to be determined only at runtime. Originally, the prototype I did as a proof of theory (or a quick hack) So one method is to create a...
2
by: chellappa | last post by:
hi Everybody! i am trying multiple array linked list .. i am trying , but its give derefernceing pointer to incompelete type .. please help me to correct this pgm #include<stdlib.h>...
3
by: chellappa | last post by:
hi this simple sorting , but it not running...please correect error for sorting using pointer or linked list sorting , i did value sorting in linkedlist please correct error #include<stdio.h>...
6
by: Nick Valeontis | last post by:
I know how to use Icomparable. However, I can't figure out how to sort a generic linked list? (without writing the algorithm) Lets say I have something like this: class...
6
by: mattmao | last post by:
Okay, this is just my exercise in order to prepare for the coming assignment regarding the damned Linked List issue... The task is simple and I am about to finish it. However, I couldn't go around...
7
by: QiongZ | last post by:
Hi, I just recently started studying C++ and basically copied an example in the textbook into VS2008, but it doesn't compile. I tried to modify the code by eliminating all the templates then it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.