473,388 Members | 1,400 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,388 software developers and data experts.

how can i make my node info in linked list as an object of another class

how can i make my node info in linked list as an object of another class
f.e i want to make my node data as a person information like name , surname , date of birth and job . can any one help me plz
Dec 26 '09 #1
4 1732
tlhintoq
3,525 Expert 2GB
If you mean a TreeView node, look at it's tag property.
A tag takes an object, so you could give it whatever you like.
Dec 26 '09 #2
it isn't treeview node . i'll explain my project is to make a family linked list information and each family has 3 component : husband , wife and children as the number of children varies from family to family . eah person is , in turn represented by astructure of 3 component name , surname and date of birth . and i don't know how to construct this project . can u help me ??
Dec 26 '09 #3
tlhintoq
3,525 Expert 2GB
Don't use a structure. Use a class.

I've never done a project with LinkedList
But I've done several using TreeNodes without ever actually using a TreeView control to show them. I just wanted a node based data structure that let me keep adding node... and subnodes etc.
http://bytes.com/topic/c-sharp/answe...ss#post3534813

Treenode is nice for that since it has a text property for its label as well as a tag property to take whatever object you want to assign it: Whether it be a leaf on a family tree or a menuitem or a modular plugin.
Dec 26 '09 #4
thank you very much .. i will try this :)
Dec 26 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Fabio | last post by:
Hi everyone, Is there anybody who can suggest me a link where I can find information about 'Persistent linked list' ? I need to implement a linked list where every node is a structure like the...
8
by: Ryan Stewart | last post by:
Putting the following code in a page seems to make it go into an infinite loop unless you give it a very simple node to work with. Either that or it's very very slow. I'm somewhat new to this,...
4
by: Sumika | last post by:
Hello, I'm a newbie here, so don't know much friends. I've problem deleting my node at the tail, so could you all help me to solve my error,I worked on it for quite sometime but it just can't...
13
by: Raj | last post by:
Is there any way to delete a particular node from a singly linked list where the header of the list is unknown.Only pointer available is the one which points to the node to be deleted
16
by: sangram | last post by:
how to delete last node of a Linked list if you only know the address of last node. thanks sangram
1
by: ahoway | last post by:
I am having problems deleting a node from a link list. I need to delete the node which contains the number six. This is what I have so far..... Thank you in advance. #include <iostream>...
9
by: raylopez99 | last post by:
What's the best way of implementing a multi-node tree in C++? What I'm trying to do is traverse a tree of possible chess moves given an intial position (at the root of the tree). Since every...
10
by: Aditya | last post by:
Hi All, I would like to know how it is possible to insert a node in a linked list without using a temp_pointer. If the element is the first element then there is no problem but if it is in...
6
by: stealthaygamer | last post by:
I need to create a singly linked list with nodes containing one integer value and obviously a pointer to the next node. The node class has to be a private class within my list class. I have a pointer...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.