![]() |
|
#1
|
|||
|
|||
Traverse Function in a Linked ListHey everyone,
I'm hoping one of you can help me figure out what's wrong with this code. I'm writing a traverse function that will print out the data for a linked list. For some reason I can't get it to print anything but the first thing in the list. I'm not sure what I'm doing wrong. CPP / C++ / C Code:
Last edited by admin : 08-Oct-2008 at 00:54.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Traverse Function in a Linked ListQuote:
When posting code, place a [cpp] code tag before the code, & [/cpp] afterward to both preserve formating & color code keywords & identifiers. |
|
#3
|
|||
|
|||
Re: Traverse Function in a Linked ListJust need one line of code in while for traverse.
|
|
#4
|
|||
|
|||
Re: Traverse Function in a Linked ListQuote:
If minimalization was the issue, the while-loop could be reduced to: CPP / C++ / C Code:
|
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 65 | 19-Aug-2009 08:50 |
| Str_Misaligned in Double Link List | Peter_APIIT | C Programming Language | 1 | 29-Feb-2008 21:50 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Help in C Print is not working with LinkList | batman3280 | C Programming Language | 3 | 09-Mar-2006 20:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The