ordering #'s

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
ordering #'s

Post by Guest » Wed May 08, 2002 3:20 am

um how do you order a group of #'s by they're value?

User avatar
frankiebaby
Global Moderator
Posts:95
Joined:Tue Apr 30, 2002 1:38 am
Location:Pennsylvania
Contact:

Re: ordering#'s

Post by frankiebaby » Tue May 14, 2002 2:17 am

well, that depends on how your holding the numbers, so if your in an array, that would be much easier, just check if the first 2 are in order, if not use the swap command, and add 1 to a temp counter, else do nothing. then the second and third, third and forth, ect. then loop again until the temp counter comes out zero.

Post Reply