program displaysystems;
(********************************************************************
This file is part of Ironseed.
Ironseed is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Ironseed is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Ironseed. If not, see .
********************************************************************)
{*********************************************
Data Generator: Systems names / coordinates
Copyright:
1994 Channel 7, Destiny: Virtual
2020 Matija Nalis
**********************************************}
{$PACKRECORDS 1}
uses crt;
type
nametype= string[12];
type
oldsystype= record
x,y,z,lastdate,visits,numplanets: integer;
end;
var
a, j: integer;
f: file of nametype;
ft: text;
t: array[1..250] of nametype;
f2: file of oldsystype;
s: array[1..250] of oldsystype;
{f4: text;}
{i, index: integer;
tempt: nametype;
temps: oldsystype;}
{ generate informative-only sysdata.txt }
procedure display;
begin
assign(f,'data/sysname.dta');
reset(f);
assign(f2,'data/sysset.dta');
reset(f2);
assign(ft,'Data_Generators/other/sysdata.txt');
rewrite(ft);
{ assign(f4,'Data_Generators/makedata/sysset.txt');
rewrite(f4);}
for a:=1 to 250 do
begin
read(f,t[a]);
read(f2,s[a]);
{writeln(f4, s[a].x, #9, s[a].y, #9, s[a].z, #9, s[a].numplanets);}
end;
{
for i:=1 to 250 do
begin
index:=i;
for j:=i to 250 do if t[j]