Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!lihan
From: lihan@walt.cc.utexas.edu (Bruce Bostwick)
Newsgroups: comp.lang.pascal
Subject: Re: printing pascal runs..
Keywords: help me.. help me..
Message-ID: <18883@ut-emx.UUCP>
Date: 27 Sep 89 22:31:22 GMT
References: <4930@uhccux.uhcc.hawaii.edu> <795@chyde.uwasa.fi>
Sender: news@ut-emx.UUCP
Reply-To: lihan@walt.cc.utexas.edu (Bruce Bostwick)
Organization: UT-Austin, Texas
Lines: 34

In article <795@chyde.uwasa.fi> ts@chyde.uwasa.fi (Timo Salmi LASK) writes:
>In article <4930@uhccux.uhcc.hawaii.edu> cs211s65@uhccux.uhcc.hawaii.edu (Cs211s65) writes:
>>I need some assistance with my programming class that I
>
>First my apologies to the other netters for posting rather than
>mailing a message discussing policy.  But it seems to me that while
>the purpose of this area is discussing Pascal, and give in other
>help in our programming problems, solving the students' programming
>assignments is NOT what this area is about.
>

Actually, the solution to this problem isn't an assignment, but rather required
by class policy, at least in the Pascal courses I'm familiar with.  The course
requires a printout of the program listing, followed by a _printed copy_ of the
run results.  The question was how to generate that printed copy of the run.

As far as I know, there's no way to do that easily from turbo 3.0. The only
solution I know of is fairly unobvious, a really ugly kludge, and not at all
the sort of thing a CS student drilled in 'elegance at all costs' will be pre-
pared to think of.  One has to modify ALL the writeln's in the program, as
well as add a writeln after each readln, to simulate this 'printer echo' mode.
If you know a neat, elegant way to do that from 3.0, please enlighten us.
Otherwise, please don't be so quick to condemn 'homework on the net' -- not
all valid questions come from CS grad students!


=======================================================================
Internet:lihan@walt.cc.utexas.edu     Disclaimer: My employer doesn't
MaBellNet:(512)459-1602                    even know UseNet exists, let
SlowNet:varies chaotically,                alone that I'm on it and ex-
     e-mail for current value              pressing opinions ...
+---------------------------------------------------------------------+
                       (-:   a.k.a. BB/CIV   :-)
=======================================================================