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 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
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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,...
|
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'...
|
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.,...
|
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...
|
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>...
|
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>...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
| |