home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 77
/
Tiger_Disk_077_20xx_Tiger-Crew-Disk_de_Side_B.d64
/
sortierprogramm
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
574b
|
25 lines
1 d=53280:poked,.:poked+1,.
2 print"[147][155] alphabetisches sortieren ":dima$(1000)
3 print"die begriffe bitte !"
4 print"(ende mit '^'!)"
5 z=1
6 printz;": ";:poke19,64:inputa$(z):print
7 ifa$(z)="^"thena$(z)="":z=z-1:goto10
8 ifz>999then10
9 z=z+1:goto6
10 poke19,0:print"[147]":print
11 fori=1toz-1
12 j=i+1
13 fork=itoz
14 ifa$(k)>a$(j)then16
15 j=k
16 nextk
17 w$=a$(j)
18 a$(j)=a$(i)
19 a$(i)=w$
20 printa$(i):x=x+1:ifx/23=int(x/23)thenpoke198,0:wait198,1:poke198,0:print"[147]"
21 nexti:printa$(z)
22 poke198,0:wait198,1:poke198,0:print" drucken ? "
23 geta$:ifa$<>"j"anda$<>"n"then23
24 ifa$="j"thenopen4,4:cmd4:fori=1toz:printa$(i):next:print#4:close4