QuickSort Text

General FreeBASIC programming questions.
lrcvs
Posts: 569
Joined: Mar 06, 2008 19:27
Location: Spain

QuickSort Text

Postby lrcvs » Nov 25, 2017 8:53

Deleted, it does not work well.

Apologies.
Last edited by lrcvs on Oct 22, 2018 19:42, edited 2 times in total.
Munair
Posts: 836
Joined: Oct 19, 2017 15:00
Location: 't Zand, NL
Contact:

Re: QuickSort Text

Postby Munair » Nov 25, 2017 10:25

Something for Tips&Tricks perhaps?
lrcvs
Posts: 569
Joined: Mar 06, 2008 19:27
Location: Spain

Re: QuickSort Text

Postby lrcvs » Nov 25, 2017 20:37

Deleted, it does not work well.

Apologies.
Last edited by lrcvs on Oct 22, 2018 19:42, edited 2 times in total.
jj2007
Posts: 1260
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: QuickSort Text

Postby jj2007 » Nov 25, 2017 23:07

For position 11, ascending, your last code produces this - is that the intended result?

Code: Select all

alemania   berlin    freuiweuiweiu
austria    viena     oihgijhvygctfs
china      pekin     zxcxcvxc
dinamarca  copenague asgsdfgfsgdfgd
francia    paris     abcdefghijklmno
grecia     atenas    piuoiutuyyt
inglaterra londres   sdfsarbfbwshifb
italia     roma      fuibgeefihvb
polonia    varsovia  zxdtfdtvb
portugal   lisboa    lkkuglkgkklg
rusia      moscu     qwvvgbbfgfbg
suecia     estocolmo ertertert

In contrast, the first code sorts by column 11.

Return to “General”

Who is online

Users browsing this forum: MSN [Bot] and 1 guest