home *** CD-ROM | disk | FTP | other *** search
- var
- f1, f2 : text;
- i,j : integer;
- a : string[200];
- c : char;
-
-
- procedure skip_to_quote;
- begin
- i:= i+1;
- while not (a[i] in [#13,#34]) do i:= i+1;
- if a[i] = #34 then i:= i+1;
- end;
-
-
- procedure skip_to_end;
- begin
- i:= i+1;
- while (a[i] <> #13) do i:= i+1;
- end;
-
-
- begin
- assign(f1,'pcvis5.bas');
- assign(f2,'pcvis5.pas');
- reset(f1);rewrite(f2);
- readln(f1,a);
- i:= 0; j:= 1;
- repeat
- i:= i + 1;
- if (a[i] in ['A'..'Z','a'..'z']) then
- a[i]:= chr(ord(upcase(a[i]))+32)
- { else
- if not (a[i] in [#34,#39,#13]) then i:= i+1}
- else
- begin
- if a[i] = #34 then skip_to_quote;
- if a[i] = #39 then skip_to_end;
- if a[i] = #13 then
- begin
- writeln(f2,a);
- readln(f1,a);
- i:= 0;
- gotoxy(4,4);
- writeln(j:4);
- j:= j+1;
- end;
- end; { else }
- until eof(f1);
- close(f1);close(f2);
- end.