From: usenetposting@meadows.pair.com   
      
   On Sat, 25 Jul 2015 14:58:26 -0700 (PDT), dik    
   wrote:   
      
   It's kind of you to help him out - but I still maintain that if   
   someone is using that code as part of teaching the OP how to write   
   Pascal, then he needs a new teacher. Unless the aim of the exercise is   
   to get the OP to tidy the program up, of course...   
      
   Brian.   
      
      
   > the main problem appears to be that the file STDMove2.p   
   > found on the internet is not end-of-line compatible with   
   > turbo pascal - which requires the carriage-return   
   > line-feed pair used in DOS.   
   >   
   > one way to fix this is to load STDMove2.p into WORDPAD and   
   > save it as a DOS text file. in fact, i wrote a small   
   > filter in turbo pascal that corrected line endings and   
   > converted tabs to 3 spaces instead of the usual 8. i named   
   > the result STDMOVE2.PAS   
   >   
   > although the program has a long USES line, in fact it   
   > depends on none of these units to compile. i deleted the   
   > USES line.   
   >   
   > the program writes results to the screen and echoes them   
   > to a log file. i added an 'assign' statement to name that   
   > log STDMOVE2.OUT   
   >   
   > if you type and run in a dosbox:   
   >   
   > TPC STDMOVE2.PAS   
   >   
   > the resulting executable can be run by typing   
   >   
   > STDMOVE2.EXE   
   >   
   > if you want to modify the source then perhaps try the IDE:   
   >   
   > TURBO STDMOVE2.PAS   
   >   
   > or just modify STDMOVE2.PAN in something like NOTEPAD   
   > being careful that whatever editor is used ends lines in a   
   > DOS-like manner.   
   >   
   > turbo pascal 5.5 is a wonderful program to take on   
   > problems like the one experimented with here. in the GUI   
   > intense world that exploded after TP5's day - one forgets   
   > how pleasant and effective it is to tackle something   
   > profound with just a tiny first-class command line   
   > compiler that writes so smoothly to the console and disk.   
   >   
   > good luck - richard   
   >   
   > you can download some results of what i did here:   
   >   
   > http://quagga5.fastmail.fm/STDMOVE.ZIP   
   >   
   > which contains:   
   >   
   > STDMOVE2.PAS - slightly modified and still messy source   
   > STDMOVE2.EXE - compiled executable   
   > TPC.EXE - Turbo Pascal Compiler 5.5   
   > TURBO.EXE - the IDE   
   > TURBO.TPL - the run-time library   
   --   
   This message has been sent from an invalid address   
   Replace 'Usenetposting' with my name to reply by e-mail.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|