Page 151

------------software 10,1; INVERSE l;"NON C'E' NIENTE DA CANCELLARE": PAUSE 60: RETUR N

'ài.,

450

i

;"NuMero

PRAt:

del

nome

da

iN~6~Tt' cancellare

,,,..(0 pe,· torna,"e al menu) ";X: IF x<0 OR x>n THEN PRINT Ul;AT 1 '~b':T'''W' •••••..: PAUSE 460 IF x.0 THEN RETURN 470 FOR a.x TO n-l: LET a,(a)=a • Il +1): LET b' (I) =b' la +1): LET C ,(a)eC'la+l): LET t,la)=t'la+l) 460 NEXT a 490 LET a.(n) •.... : LET b.(n)="": LET c. (n) = .... : LET t. (n) c .... 500 LET n=n-l: PRINT AT 11,13; F~~~Hp~~~~A~lO~T 1 0; "Un H t ra e liIlinlz ione? I,: LEt Z '=INKEY': I F z ••..s ..THEN GO TO 0440 520 IF Z o"n" THEN GO TO 0510 530 RETU 53~ REM 540 C S

~\1!~2~~u 550 CLS : PR INT AT 2,6; .INVERSE l;"PROCEOURA DI STAMPA" 5e0 PRINT AT 10,6;"ACCENOI LA S 6~~~A~h~A~Nf~R~;"QUANOO SEI PR 570 PAUSE 0 590 FOR a=l TO n 600 CLS : PRINT INVERSE l;AT 10 ,0; a; INVERSE 0;" "; (" .. ANO I <1 00);( .... ANO a<10);a,(a)';" .. ;b,(a)';" ";cS(a)'" ..;t'la ,

\'

610 LPRINT aSla)';bs(a)';cS(a)' t$ta)" 620 NEXT a 630 CLS . PRINT AT 10,10; INVER SE l;"F I N I T O": PAUSE 60 640 RETU •• R."N_~_~~~~_~~~~

~"''e''M''"\''''''''''' '••••••

"1'''''=

1:13":

~~M n PAUSE CLS:

5~

':·,*!l~;~_'".··;a":

~~~ 10 12;

+;*iEQ,:El

60: RETURN INPUT "eatti il nUller o del nOrle'"'' da sta.pare: ";5 : IF s<l OR s>n THEN PRINT Ul;AT 660

I

PAU

~~

670 PRINT AT 10,0; INVERSE l;s; INVERSE 0;" "; t.... ANO s(100); t .. .. ANO s <10) ;a $ (S) ,.:.. ..;b $ (s )',;"

";tS(s)"

";C$(5)'"

680 t$

LPR INT

tS)

a S (s) ,; b' (s) ,; c $ ts) ,

"

690 PRINT Ul;AT 1,0;"Vuoi stalliP afe un a lttO non)e? ": LET VS=INK EY$ 700 IF V$="s" THEN GO TO 0650 710 IF '.$ < ,.. n" THEN GO TO 0690 720 RETURN

~5~~~Mn'5'TA~s ~~

I

: PRINT

AT

g~~W70: wmt~'d""'"1ft)#@

74.0 CLS

: PRINT

AT

~~~nrMt~~l~ero odificare""'(0 per nu) ";h: IF h<0 OR

1,5;

"11M"".

elemento da m tOI-nare al me h,n THEN PRIN

~~G5~ ':"#4~~'Wr".;r-··aa'.

~..~1 760 IF h=0 THEN RETURN 770 PRINT AT 4,0; INVERSE l;h; INVERSE 0;" "; (" .. ANO h(100); l" .. ANO h <10) ;a $ (h) '.. ..;b$ (h) , ";C$(h)'" ..;t$th)" 775 PRINT AT 17,0; "PremendO SHI FT+8 si visualizzanoi caratteri u n O a l la v O lta; cO n SH 1FT +0 s i c ancella la riga po,·-tando i l cur I

sOI·e

~~

PRINT AT 1~,0;"Rispondendo ~ alle riChiestesi manten90n o 1 dati precedenti." e00 LET x$=a$th): LET k=l 810 GO sue 1000 812 IF flag=l THEN GO TO 800 814 LET Z$il)=dS 820 LET X$=b.th): LET k=2 e30 GO sue 1000 e32 IF flag=l THEN GO TO 820 834 LET ZS(2)=d$ 84.0 LET X$=C'(h): LET k=3 850 GO sue 1000 852 IF flagsl THEN GO TO 840 854 LET Z$(3) ad' 860 LET X.=t.th): LET k=4 870 GO sue 1000 872 IF flag=l THEN GO TO 860 874 LET Z$(4)=dS t~~YT I~CER~~ ~

i ':,,"

AN~;

FOR

Os14

TO

h,~ ~~~)(

Ir:f"R1 ; ~

l,

:, ;' Z S

i~)

890 0;"

900'P~i~~ (s /n)

o

910 920

20:

gl;RT

PRINT

AT

1,0;"ConferMi

o, ?

"

IF IF

'il30IF

INKEY's"" INKEY$a"n" INKEYS<>"s"

THEN GO TO 910 THEN GO TO 77 THEN

GO TO

9

00

935 LET a'ih) aZI(l)' LET b.th) = zS(2l: LET (S(h)=zI13): LET tS(h

MCmicrocomputer

970

IF

INKEY'<>"n"

THEN

GO TO

9

d $="":

LET

fl

4.0

980 1000 ag=0 1010 ~(k,

PRINT Ul;AT TO likl) ;AT

1020 1030

FOR i=l TO 28-13*tk=~) IF INKEYS="" THEN GO TO

o

RETURN INP'JT "":

LET

0,i31-l(k»/2;o 1,0; FLASH 1;", 103

1035 LET iS=INKEY' 1037 IF i.=CHRS 13 THEN INPUT "" : GO TO 1080 1040 IF i$=CHR' 12 THEN LET flag =1: RETURN 1050 IF i$=CHR$ 9 THEN PRINT Ul; AT 1, i -1; x S ti ) ;: 8EEP .002,0: PR J~:d;;~~1ir;i~oF~~S~0~b"''': LET 7~~~;tiT:d~E~~+~~02~~~N~R~~+A~1~ AT l,i; FLRSH 1;">";: PRUSE 50 1070 NEXT i 1060 IF d $="". THEN LET d $=x $ 1090 RETURN

t~~~§E~ !~I1M~,!lbM; l;"'I.."VJ

I"...DBa:I 1250 stra" 1260

•••01I1 ••.••••• ', 5:;i;" 1) CAT

PRìNfAT PRINT

n progra""a" 1270

PRINT

de l na

AT

7,2;"2)

ERA SE

AT

9,2;"3)

SAVE

di u progr

al'lrla"

1280 PRINT AT nciPale" 1290 PRINT AT su M.dl·ive" 1300 PRINT AT

11,2; "4)

da ".drive"

1310 PRINT AT egistratore" 1320 PRINT AT

n caso ::

di

Pri

13,2;"5)

SA VE

nomi

15,2;"6)

LOAO

nOflli

17,2;"0)

SAVE

su

20,0;

blOCCO

(arlO

MENU'

ripartire

del

INVERSE

r

1;"]

prograllma'"

con

GOTO

80

1330 PAUSE 0 1340 IF INKEY' =" 1" THEN CLS IN PUT AT 10, 4; "Nu Ile ,. O d e l d ,.ive? ";Z: CAT Z: PRUSE 0: GO TO 1230 1350 IF INKEY$="2" THEN CLS : IN PUT "NUMero del drive ? ";z: CRT Z: INPUT "NOMe da cancellare? ";ZS: ERASE "AI"; l;z.: CLS : PRIN T RT 10,13; INVERSE 1; "FATTO": P AUSE 100: GO TO 1230 1360 IF INKEY$="3" THEN CLS IN PUT .•NIJ lIi e I· o d e l d r i ve'? "; z: INP UT "Nome prograliMa ? ";Z$: SRVE *"II";Z;ZS LINE 10: CLS : PRINT A T 10,4.; FLRSH 1; "Attendi o,·a ver i fiCO ..• ": VERIFY *,,11"; Z;Z': CLS . PRINT AT 10,12; FLRSH 1;" O.K .! ": PAUSE 100: GO TO 1230 1370 IF INKEY$="4." THEN RETURN

g~~s~~ C~~~Y~0~~':

~~gN. S~~iN~d~

Tv~~f~~"~J~~~g;~i"PE~R~~I~fC~~~ 13;"0.K." 1390 IF INKEY'="5" THEN GO

sue

1

sue

1

~20

1400 4.90 1~10 1419

IF

INKEY$="6"

THEN

GO

GO TO 1230 REM -~-~-~-~

~~>~J,iWH~ "NOMe

le:

fi

";nS,"Nuliero

dri',Je:

,&ii:.%Iiw;~~::~'" "Nome fi le: ";n$

1 0 i, ~~g

$ t~~i ~S ( 1)

o

";Z: IF ns="" THEN GO TO 1420 1~30 ERASE .. ,,";z;nS 144.0 OPEN U~;"JlI";z;n$ 14.50 PRINT U4.;n 1~60 FOR i=l TO n: 1030 PR INT U4; a S ti ) ,b $l il '( • (i l ' t $ (i ): NEXT i 1470 CLOSE U4 . 14.60 PRINT ". 'TAB 5; "Salvataggi o efieUuato": PRUSE 50: RETURN 1489REM~

all'iniZiO."

780

E~~~

) =Z$t4, TO 15) 940 PRINT 1I1;AT 1,0;"Altra vari l' \s/nl" 945 PAUSE 50 950 IF INKEY$="" THEN GO TO 950 960 IF INKEY$="S" THEN GO TO 73

azione

n. 42 - giugno 1985

1500 OPEN U4;"m";1;n' 1510 INPUT U4;n 1520 FOR i=l TO n 1530 INPUT U4; LINE aS(il; LINE b $ (i); L INE C. li ); L INE t $l i ) N EXT i 1540 CLOSE U4 1550 PRINT ""TAe 5; "Cari caMent O comp le ta to": PA~SE?0ETURN

1:1-#1.# _.~

1555

REM

1560

IF n=0

THEN

LS

: PRINT

AT

~:. ~;~!'5'iEgpnV'''1M''W' fSi01?~ti4M*.~_)j;5: fjlìl!1T.'; 13lH" 1580 PRINT

AT 3,2;"Selezionare i l campo su cui effettuare l4 ricerca" 1590 PRINT RT 7,7; FLASH 0;"1) " ;OSll, TO l(1);AT 9,7;"2) ";oS( 2, TO l(2l);AT 11,7;''3) ";0'i3, TO l(3);AT 13,7;"4) ";OS(4, TO

l(4.» ;AT

15,7;"5)

MENU

PRINèIPAL

E" 1600 PAUSE 0 1610 IF INKEY$="l" THEN FOR f=l TO l(1)+3: PRINT AT 7,6+f; FLASH 1; OVER 1;" ": NEXT f: FOR i =1 TO n: LET e $ (i) =a $ ti): NEXT i: G O sue 1670 1620 IF INKEY$="2" THEN FOR fal TO lt2l+3: PRINT RT 9,6+f; FLASH 1; OVER 1;" ": NEXT f: FOR i=l TO n: LET eSti) zb$ii)' NEXT i: G O sue 1670 1630 IF INKEY,="3" THEN FOR f=l TO l (3)+3: PRINT AT 11,6+f; FLRS H 1; O'JER l;" ": NEXT f: FOR i=l TO n: LET eSU)=c$ti)' NEXT i:· GO sue 1670 1640 IF INKEYS="4." THEN FOR f=l TO l(4)+3: PRINT RT 13,6+f; FLAS H 1; O'JER 1;" ": NEXT f: FOR i=l TO n: LET e$ti)=tS(i): NEXT i: GO sue 1670 1650 IF INKEY$="5" THEN RETURN 1660 GO TO 1580 1663 PRINT AT 16,0; "Prelllettendo nell.~input il segno .. "/"" la ric erca avra' luogo ancheall~intern O del caIlPo." 1670 LET f la =0: LET f lag =0' INPU T "Elemento da ricercare: "; fS: IF fS="" THEN GO TO 1570 1672 IF f$ (1) c" /" THEN LET fl a 9 = 1: LET f'=f$t2 TO ) 1660 CLS : PRINT Ul;RT 1,7;"~

I~n"'im;':

LET

OIH u (n): c=0 : LET d=2: LET co=0: LET fl=0 1700 FOR i=l TO n 1705 IF NOT flag THEN GO TO 1745

~~i03~0~N6=i.1?,1~1);tH~:1~2j+H~ N GO TO 1730 1720 LET uti)=uii)+l: NEXT j 1730 FOR j=l TO uti) -LEN fS+l 1740 IF e$(i,j TO j+LEN fS-l) =fS THEN LET fl=l: GO SUB 1780: GO TO 1760 174.2 NEXT j 174.5 IF e$ti, TO LEN f$lefS THEN LET fl=l: GO sue 1780 1760 NEXT i 1770 GO TO 1810 1760 LET (=C+l: LET s (cl =i: IF d =2 ANO C<'l THEN IF lC-l)/4sINT ~) THEN PRINT AT 20 0; 1"11 R ~ per 1l m:nt""l"': +g8 ~ug+~ 805: CLS 1790 PRINT Ud; INVERSE 1; i; INVE RSE 0;" "; t" " ANO i(100); t" " A NO i < 10) ; a $ (i) . .. "; b$ (i) ... " ; C' (i) ." "; t S (i) , • 1800 RETURN 1805 PAVSE 0: IF INKEY $ =" " THEN GO TO 1570 1807 RETURN 1810 IF fl=0 THEN PRINT Ul;AT 1, PAUSE 1820 IF d=3 THEN GO TO 1880 1825 PRINT AT 21,12; "ELEMENTI TR OVATI: "; ( 1830 IF d=2 THEN PRINT 1I1;AT 1,0 ; "vuoi starllpare l' (s/o) ": IF I NKEY$="s" THEN LET d=3: INPUT "" . FOR y=l TO c: LET i=s(y): GO S ue 1790: NEXT y: GO TO 1850 184.0 IF INKEY$O"n" OR INKEY'="" THEN G') TO 1830 1850 LET d=2: GO TO 1570 1860 REM NEXT gj",

g~':''!,M~.'!ftW\!i..,,,.:

t~~~~E~.M'Y'10, 5; "~

Il'e!'7Srf'!'r-wP'~ 1890 IF i <n THEN IF

a S (i ) >a $ (i + 1 ) THEN GO sue 1950 1900 NEXT i 1910 FOR i=l TO n 1920 IF i <n THEN IF aSli) >a' (i +1 l THEN GO TO 1860 1930 NEXT i 1940 BEE P .3,30: RETURN 1~50 LET x.=a'ii+l)· LET y$=b'(i + 1): LET z. = c $ li + 1) LET q $ z t • (i +1) 1960 LET a $ ti + 1) =a $ til: LET b' (i +l)=b$ti): LET (Sli+l)=cSii): LE T t'(i+l)=tSiil 1970 LET aS(il=xS: LET bS(il=YS: LET C $ (i l cZ S: LET t S (i ) =q S 1960 RETURN 1989 REM 1990 CLS R N 2000 PR IN T I; " In s e:I~i I· e i l n o~e scellO pei ogni ca~po, ~u ando iichiesto." 2010 PRINT AT 6,0; "Per ogni reco rd \li sono 4. camPi." 2020 FOR i=l TO 4 2030 INPUT "CaMpo N.";ii);": ";0 S i il

2040 FOR j = 1 TO LEN O. (il: IF O S ti, j) =" " ANO 0$ (i, j+l) =" " THEN GO TO 2060 2050 LET l(i)=l (i~+l: NEXT j 2060 NEXT i 2070 GO TO 0060

151

Profile for ADPware

042 MCmicrocomputer  

Giugno 1985

042 MCmicrocomputer  

Giugno 1985

Profile for adpware
Advertisement