cnoobprogrammer's Avatar, Join Date: Mar 2012
Newbie Member
Hi.
Your code is nice.
May I ask why do you use 2 for loop in this case?

Appreciate your help!
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by cnoobprogrammer View Post
Hi.
Your code is nice.
May I ask why do you use 2 for loop in this case?

Appreciate your help!
Have you tried any sorting algorithms?
cnoobprogrammer's Avatar, Join Date: Mar 2012
Newbie Member
Ya, I try to check if this value referenced by the pointer is greater than the value referenced by another pointer. But it doesn't work.
cnoobprogrammer's Avatar, Join Date: Mar 2012
Newbie Member
Hi can i check with you, the reason for having 2 loop is it because you want to compare the first node with the second node and so on?

Thank you!