Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linked list using arrays?
#1
In linked list discussed in lectures, every node contained an integer because in Node class we have defined variable object of type int.
If you want to make a linked list in which every node contains an array then define array instead of int in Node class.
Of course it will be useful, for example you want to create a linked list of fruits, then to store fruit names you can use character array i.e; every node in the linked list will contain an array and that array will hold the fruit name.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tell me can we say that in easy form List is the Database ? Vuhelper 0 1,980 10-13-2011, 10:38 PM
Last Post: Vuhelper
  Read data from file into arrays in c++ 2011 Vuhelper 0 911 07-20-2011, 10:58 PM
Last Post: Vuhelper
  how to pass a simlpe list of data type struct to function in c++ 2011 Vuhelper 0 859 07-20-2011, 10:49 PM
Last Post: Vuhelper
  Better way to erase elements from a std::list? in c++ 2011 Vuhelper 0 897 07-20-2011, 10:48 PM
Last Post: Vuhelper
  why we use member intilizer list.what is benefit of using it. saneha 1 3,374 05-02-2011, 06:29 PM
Last Post: Vuhelper
  The number in two arrays after taking these number the array sana.pari 1 2,260 04-24-2011, 06:36 PM
Last Post: Support
  I use multi dimensional arrays in a program sana.pari 1 2,027 04-24-2011, 05:18 PM
Last Post: Support

Forum Jump:


Users browsing this thread: 1 Guest(s)