Aaaah, OK. That helps.
In the future, I will tidy up my code. Not a problem.
Thanks for the help Adrian!
Type: Posts; User: NM Greg
Aaaah, OK. That helps.
In the future, I will tidy up my code. Not a problem.
Thanks for the help Adrian!
Will someone please explain the second half of this code sequence: 123456789987654321
I understand the first half (123456789...) but at num=9, it kicks out of the If condition, cout's one last...
Wow, thanks Whiteflags.
I'm way past school (retired Eng) and learning C++ on my own thru the Jumping into C++ book. Having a very hard time with linked lists, so I found this example from the...
Hey, it compiled for me.
why is my cout as follows:
test
1
test
2
3
why did it not output test after 2
Thank You!
Line 50 needs to be there so it COUT's the last element (42). The last element has next = 0 and the while loop goes until next != 0.
I think linked lists is finally starting to...
I'm currently studying Jumping into C++.
I understand the concept of Linked Lists, but using linked lists has me stumped.
In the below code (from linked list tutorial), I have "conductor =...