-
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484179]The above removes ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484410]Hi Einar,
< ... />
Many thanks
Paddy[/QUOTE]
Thanks for ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484427]Fastest so far is v4.5 at 11.52 seconds with RANDOMIZE 100.[/QUOTE]
Ops I believe this version was incorrect also, see [URL="http://www.worldofspectrum.org/forums/showpost.php?p=484109&postcount=105"]#105[/URL]. -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484586]Hi Dr Beep,< ... I gone wrong?
Paddy[/QUOTE]
If the ... -
happy birthday Paddy Colemanhappy birthday , pass the mustard *runs* :)
Happy b'day paddy! have a good one! -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484660]Nope, it still ... apparently it works?
Paddy[/QUOTE]
You have to ... -
INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…
Hi Folks,
A modified version of the INSTR routine that uses two array variables rather than individual variables.
[CODE]100 DIM i$(2,100):
DIM i(4)
110 LET a$="This is some sample text that I entered!"
120 ... -
A BASIC quiz[URL]http://equ.in/ox/spectrum/basicquiz/[/URL] On first try: 14/20
Oopps, 12/20 too - need to improve. :cry:
Paddy -
General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …
A couple of wee improvements to the program:
[CODE]...
9290 IF i(6)=12 AND i(7) THEN
GO TO 9470
...
9430 IF i(7) AND i(6)=45 THEN
GO TO 9260
...[/CODE]
Enjoy!
Paddy -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;485246][LIST]
[*]The ... value).
[QUOTE=Paddy Coleman;485246][LIST]
[*]The ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;485246]Hi Folks,
< ... /> [/LIST]
Enjoy!
Paddy[/QUOTE]
I noticed ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;485246]Changes made are:< ... /> [/QUOTE]
I applied Paddy's excellent ideas (listed above ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;485496]Oops sorry JamesD, ... for that one.
Paddy[/QUOTE]
I wasn't ...