Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums-archives
  
  heres a new prog, with better stuff than the last i gave you-nimrod

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   heres a new prog, with better stuff than the last i gave you-nimrod Format for Better Printing
boz
Apolyton CS Co-Administrator
Macedonia, Greece
b.02-15-99
posted January 13, 2000 06:32   Click Here to See the Profile for bozClick Here to Email boz  send a private message to MarkG Visit boz's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
program displaymag;
uses crt;
var magnam :string;
exit :boolean;
option :integer;
name :array[1..20] of string;
price :array[1..20] of real;
mag :text;
key :char;
pointer :integer;
nomags :integer;

procedure readfile;
begin
assign(mag,'mfile.dat');
reset(mag);
pointer:=1;
readln(mag,name[pointer]);
while not eof(mag) do
begin
readln(mag,price[pointer]);
pointer:=pointer+1;
readln(mag,name[pointer]);
end;
nomags:=pointer-1;
end;

procedure display;
begin
writeln('Please enter the name of the magazine');
readln(magnam);
for pointer:=1 to nomags do
begin
if name[pointer]=magnam then
begin
writeln(name[pointer],' costs ',price[pointer]:6:2);
key:=readkey;
end;
end;
end;

procedure displayall;
begin
clrscr;
pointer:=1;
for pointer:=1 to nomags do
begin
writeln('name ',name[pointer],' price ',price[pointer]:6:2);
end;
key:=readkey;
end;

procedure menu;
begin
writeln('`1` Display All Magazines');
writeln('`2` Display Selected Magazine');
writeln('`3` Exit');
readln(option);
case option of
1: begin
displayall;
end;

2: begin
display;
end;

3: begin
exit:=true;
end;
end;
clrscr;
end;

{main program}
begin
clrscr;
readfile;
repeat
menu;
until exit;
end.

Scouse Gits
Apolyton CS Co-Administrator
Macedonia, Greece
b.02-15-99
posted January 13, 2000 07:16   Click Here to See the Profile for Scouse GitsClick Here to Email Scouse Gits  send a private message to MarkG Visit Scouse Gits's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Can I suggest you return to Sketching ?

------------------
____________
Scouse Git[1]

"CARTAGO DELENDA EST" - Cato the Censor

Bohlen
Apolyton CS Co-Administrator
Macedonia, Greece
b.02-15-99
posted January 13, 2000 09:51   Click Here to See the Profile for BohlenClick Here to Email Bohlen  send a private message to MarkG Visit Bohlen's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
What the hell are you talking about?
Scouse Gits
Apolyton CS Co-Administrator
Macedonia, Greece
b.02-15-99
posted January 13, 2000 10:39   Click Here to See the Profile for Scouse GitsClick Here to Email Scouse Gits  send a private message to MarkG Visit Scouse Gits's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
On the assumption that a Systems Analyst can read Borland Pascal, it appears you mean me.

The thread author is "Boz", Dickens wrote a book entitled "Sketches by Boz" hence my suggestion that sketching would perhaps be more suited to a CIV forum than a magazine price look-up table. Although I must admit it would not be much more suited...

------------------
____________
Scouse Git[1]

"CARTAGO DELENDA EST" - Cato the Censor

Bohlen
Apolyton CS Co-Administrator
Macedonia, Greece
b.02-15-99
posted January 13, 2000 10:49   Click Here to See the Profile for BohlenClick Here to Email Bohlen  send a private message to MarkG Visit Bohlen's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
SG - An analyst, not a programmer. I was referring to the glop of stuff at the top of the page. I would never insult a Scouse Git. There are too many of you!
Apolyton Civilization Site Forums-archives
> > > Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

AltaVista Type or paste text or Web address (beginning with http://) here:
Powered
by Systran
Translate from: 

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site