Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Pointers Posted by Pascalgameboy on 5 Mar 2012 at 2:31 AM
hey, i have a problem with pointers, after a list created by pointers is read how do i write the list in the reverse order?
Report
Re: Pointers Posted by Actor21 on 8 Apr 2012 at 4:55 PM
: hey, i have a problem with pointers, after a list created by
: pointers is read how do i write the list in the reverse order?
:
A linked list is a stack. Copy the elements from one stack to another by repeatedly popping an element off the first stack and pushing it onto the other. The new stack will be in reverse order. Then just write out the second stack.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.