Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Civ2-Strategy-Archive > heres a new prog, with better stuff than the last i gave you-nimrod
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
boz is offline boz
manchester,england
Jan 2000
time: 05:12
Post  Old Post 13-01-2000 16:32
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
heres a new prog, with better stuff than the last i gave you-nimrod Support Apolyton

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 is offline Scouse Gits

Emperor
Liverpool, United Kingdom
Nov 1999
time: 05:12
  Old Post 13-01-2000 17:16 Visit Scouse Gits<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Can I suggest you return to Sketching ?

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

"CARTAGO DELENDA EST" - Cato the Censor

Bohlen is offline Bohlen
Prince
of Space
Nov 1999
time: 00:12
Question  Old Post 13-01-2000 19:51
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization 2

What the hell are you talking about?

Scouse Gits is offline Scouse Gits

Emperor
Liverpool, United Kingdom
Nov 1999
time: 05:12
  Old Post 13-01-2000 20:39 Visit Scouse Gits<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Avatar Enlargement: We've got the solution

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 is offline Bohlen
Prince
of Space
Nov 1999
time: 00:12
Post  Old Post 13-01-2000 20:49
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Lose 30 kilos (of popups)

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!

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:12.
Apolyton Time is 00:12.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0324 seconds (83.68% PHP - 16.32% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net