| Код | if s=d7 then begin Here: Readln( t, s ); Here2: if s=d2 then begin CloseFile(t); AssignFile( t, fname ); Reset(t); while not eof(t) do begin Readln(t,s); Readln(t,s); Here3: Readln(t,s); if s=d2 then begin New(i3); i3^.v := FloatToStr(v); i3^.hmm := IntToStr(hmm); GCalList.Add(i3); goto theend; end; begin hmm := StrToInt(GetNextTerm( s )) * 10; v := StrToFloat(GetNextTerm( s )); Readln(t,s); if s=d2 then begin New(i3); i3^.v := FloatToStr(v); i3^.hmm := IntToStr(hmm); GCalList.Add(i3); goto theend; end; hmm1 := StrToInt(GetNextTerm( s )) * 10; v1 := StrToFloat(GetNextTerm( s )); rv := v1-v; hv := rv / 10; rhmm := hmm1-hmm; hhmm := rhmm div 10; While v < v1 do begin New(i3); i3^.v := FloatToStr(v); i3^.hmm := IntToStr(hmm); GCalList.Add( i3 ); v := v + hv; hmm := hmm + hhmm; end; goto here3; end; end; end; while not eof(t) do begin begin hmm := StrToInt(GetNextTerm( s )) * 10; v := StrToFloat(GetNextTerm( s )); Readln(t,s); if s=d2 then goto here2; hmm1 := StrToInt(GetNextTerm( s )) * 10; v1 := StrToFloat(GetNextTerm( s )); rv := v1-v; hv := rv / 10; rhmm := hmm1-hmm; hhmm := rhmm div 10; While v < v1 do begin New(i3); i3^.v := FloatToStr(v); i3^.hmm := IntToStr(hmm); GCalList.Add( i3 ); v := v + hv; hmm := hmm + hhmm; end; goto Here; end; end; end;
|
Вот код... |