DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦7fc5af5d5⟧ TextFile

    Length: 512 (0x200)
    Types: TextFile
    Names: »CHRSTR.BAS«

Derivation

└─⟦69a509965⟧ Bits:30005211 CR8 BASIC Games
    └─ ⟦this⟧ »CHRSTR.BAS« 

TextFile

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»