|
-
May 19th, 2009, 10:08 AM
#1
Linked List swap
Hi;
Was working on a question. The question was to write a function that will swap a element in the list with next element in the list. I can get it to work for first element in the list but not for an element in the middle of the list.
Any ideas?
This is not a homework question or anything like it, jsut something i am doing myself.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|