|
DataMuseum.dkPresents historical artifacts from the history of: CP/M |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about CP/M Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 512 (0x200) Types: TextFile Names: »CHRSTR.BAS«
└─⟦69a509965⟧ Bits:30005211 CR8 BASIC Games └─ ⟦this⟧ »CHRSTR.BAS«
1 REM *** CHRSTR.BAS *** 10 PRINT CHR$(27);"E" 20 PRINT STRING$(12,CHR$(30));;"CHRSTR >>> "; 30 PRINT" SORTS AND COUNTS CHARACTERS" 40 INPUT"INPUT CHARACTERS";A$ 50 FOR I=0 TO 127 60 TT=0 70 J=INSTR (A$,CHR$(I)): IF J>0 THEN TT=TT+1: A$=LEFT$(A$,J-1) + MID$(A$,J+1): GOTO 70 80 IF TT>0 THEN PRINT CHR$(I);TT, 90 NEXT 100 PRINT:PRINT 110 INPUT"MENU";A$ 120 RUN "MENU" «eof»