Скажите , как ответить на тринадцатый вопрос из билета. ответить нужно без воды. файловая оболочка проводник: назначение, возможности. использование при создании, копировании, переносе объектов при мыши, клавиатуры и функциональных клавиш.
Попробуй Program PascalGuru; var s:string; f,t:text; function preobr(s:string):string;var i,j,p,n,sered:integer; gl,zp,slovo:string; m:array [1..80] of string;beginzp:='!?*,.'; gl:='аоуыэяеёюи'; p:=pos(' ',s); i:=0; repeat inc(i); slovo:=copy(s,1,p-1); m[i]:=slovo; delete(s,1,p); p:=pos(' ',s); until p=0; n:=i+1; m[n]:=s; for i:=1 to n do begin s:=m[i]; if pos(s[length(s)],zp)<>0 then p:=length(s)-1 else p:=length(s); sered:=(p div 2)+1; if (not odd(p)) or (p<3) then continue; if pos(s[1],gl)=0 then continue; if pos(s[sered],gl)=0 then continue; if pos(s[p],gl)=0 then continue; s[1]:=UpCase(s[1]); s[sered]:=UpCase(s[sered]); s[p]:=UpCase(s[p]); m[i]:=s+'('+s[1]+','+s[sered]+','+s[p]+')'; end; s:=''; for i:=1 to n do s:=s+m[i]+' '; preobr:=s;end; beginassign(f,'input.txt'); reset(f);assign(t,'output.txt'); rewrite(t); while not eof(f) do begin readln(f,s); writeln(t, preobr(s) ); end; writeln('Файл успешно записан...'); close(f);close(t);readln;end.
1) набрать 5 л и перелить в 9-литровое ведро. 2) набрать еще 5 л и перелить 4 л доверху в 9-литровое ведро. В 5-литровом ведре останется 1л. 3) опустошить 9-литровое ведро т перелить в него 1 л из 5-литрового. 4) набрать 5л и перелить в 9-литровое, где уже есть 1 л, после чего в 9-литровом окажется 6 л. 5) набрать еще 5 л и переливать в 9-литровое 3л, пока 9-литровое не заполнится. В 5-литровом останется 2 л. 6) опустошить 9-литровое и перелить из 5-литрового 2 л в 9-литровое. 7) набрать 5 л и перелить в 9-литровое к имеющимся в нем 2 л воды. В 9-литровом окажется 7 л. 8) набрать 5 л и переливать в 9-литровое 2 л, пока оно не заполнится. В 5-литровом останется 3л. 9) вылить всю воду из 9-литрового и нести домой 3д в 5- литровом ведре и пустое 9-литровое ведро.
function preobr(s:string):string;var i,j,p,n,sered:integer; gl,zp,slovo:string; m:array [1..80] of string;beginzp:='!?*,.'; gl:='аоуыэяеёюи'; p:=pos(' ',s); i:=0; repeat inc(i); slovo:=copy(s,1,p-1); m[i]:=slovo; delete(s,1,p); p:=pos(' ',s); until p=0; n:=i+1; m[n]:=s; for i:=1 to n do begin s:=m[i]; if pos(s[length(s)],zp)<>0 then p:=length(s)-1 else p:=length(s); sered:=(p div 2)+1; if (not odd(p)) or (p<3) then continue; if pos(s[1],gl)=0 then continue; if pos(s[sered],gl)=0 then continue; if pos(s[p],gl)=0 then continue; s[1]:=UpCase(s[1]); s[sered]:=UpCase(s[sered]); s[p]:=UpCase(s[p]); m[i]:=s+'('+s[1]+','+s[sered]+','+s[p]+')'; end; s:=''; for i:=1 to n do s:=s+m[i]+' '; preobr:=s;end;
beginassign(f,'input.txt'); reset(f);assign(t,'output.txt'); rewrite(t); while not eof(f) do begin readln(f,s); writeln(t, preobr(s) ); end; writeln('Файл успешно записан...'); close(f);close(t);readln;end.