<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'turbo pascal 6.0' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'turbo pascal 6.0' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 19:17:25 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 19:17:25 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141298/turbo-pascal-60/</link>
      <description>Two questions:&lt;br /&gt;
First does anybody know why every time that I'm use users crt it's writting to me "Division by zero" and how to fix it?&lt;br /&gt;
Second how can I make a[1]=3 a[2]=1 a[3]=2 a[4]=1 a[5]=8 to&lt;br /&gt;
b[1]=1 b[2]=2 b[3]=3 b[4]=8 b[5]=0?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141298/turbo-pascal-60/</guid>
      <pubDate>Thu, 26 Sep 2002 04:57:16 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141305/re-turbo-pascal-60/#141305</link>
      <description>Usually, processors running at over 200MHz cause the CRT&lt;br /&gt;
unit to crash. To fix this, you can download my replacement&lt;br /&gt;
for the CRT unit at &lt;a href="http://slicer69.tripod.com/code/"&gt;http://slicer69.tripod.com/code/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141305/re-turbo-pascal-60/#141305</guid>
      <pubDate>Thu, 26 Sep 2002 05:26:16 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141335/re-turbo-pascal-60/#141335</link>
      <description>Your unit has destroyed my pascal:&lt;br /&gt;
I wrote to it Clrscr and i've got an error and now every time when Im open the pascal I can't see a thing... Please help.&lt;br /&gt;
P.S.&lt;br /&gt;
sorry about my english&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141335/re-turbo-pascal-60/#141335</guid>
      <pubDate>Thu, 26 Sep 2002 06:54:29 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141401/re-turbo-pascal-60/#141401</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by iby at  2002-9-26 13:16:41&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: Your unit has destroyed my pascal:&lt;br /&gt;
: I wrote to it Clrscr and i've got an error and now every time when Im open the pascal I can't see a thing... Please help.&lt;br /&gt;
: P.S.&lt;br /&gt;
: sorry about my english&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, first of all, only TP7 has faulty CRT unit,&lt;br /&gt;
if I'm not mistaken. You mentioned that you have TP6. &lt;br /&gt;
If so and you have copied CRT.TPU to your pascal&lt;br /&gt;
directory, simply remove it.&lt;br /&gt;
If the CRT.TPU is part of the TURBO.TPL, replace this&lt;br /&gt;
file with original (the one that comes with your pascal version).&lt;br /&gt;
&lt;br /&gt;
Now back to your array question. It looks to me that&lt;br /&gt;
you want to sort array A[] and place it into B[].&lt;br /&gt;
Try any sorting algorythm you can find.&lt;br /&gt;
As always the simplest one is not the fastest.&lt;br /&gt;
There are always compromises. I hope you will&lt;br /&gt;
find following code simple enough:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
program sort_test;

var ArrayA,ArrayB:array[1..10] of integer;
    i,j,temp:integer;

begin

{ Get some numbers from user }

  for i:=1 to 10 do
    begin
      write('Enter integer nr.',i,': ');
      readln(ArrayA[i]);
    end;


{ Copy values to ArrayB }

  ArrayB:=ArrayA;

{ Sort the values of ArrayB. This is not quite straight
  forward, but here is an explanation:

  Assume first array element is the smallest. Often, this is
  not true but we have to start somewhere and there are
  worse choices than starting from begining...
  Now, search through array and see if we find element that
  is even smaller and replace it with the one we tought it 
  was the smallest.
  This way size of array doesn't change, only thing that 
  happened was that smallest element got to first place, 
  and one that was there before is moved back to it's place.
  So very first element is ok. To sort the rest of the array
  you have to keep repeating the process untill end of the array
  is reached. }

{ note: index "i" points to what we think is the smallest element.
        index "j" points to other elements we are screening }

  for i:=1 to 9 do
    for j:=i+1 to 10 do

    { check if found element is smaller  }

      if ArrayB[j]&amp;lt;ArrayB[i] then

    { if smaller, swap the elements }

         begin
           temp:=ArrayB[j];
           ArrayB[j]:=ArrayB[i];
           ArrayB[i]:=temp;
         end;


{ print both arrays for comparison }

  writeln('A      B');
  writeln('----------------');

  for i:=1 to 10 do
    writeln(ArrayA[i],'      ',ArrayB[i]);

  writeln('Check if Array B is sorted. Press Enter to exit...');
  readln;
end.
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Iby&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
       2B                 ?  
   ----| |----+----------( )--
              |
       2B     | 
   ----|/|----+
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141401/re-turbo-pascal-60/#141401</guid>
      <pubDate>Thu, 26 Sep 2002 13:11:52 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141403/re-turbo-pascal-60/#141403</link>
      <description>I've deleted my crt unit and every thing you said but it's not helping: even after I have deleted all my pascal folder and install pascal 7.0 I can't see any thing when I'm opening pascal...............&lt;br /&gt;
...Help...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141403/re-turbo-pascal-60/#141403</guid>
      <pubDate>Thu, 26 Sep 2002 13:39:38 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141417/re-turbo-pascal-60/#141417</link>
      <description>: I've deleted my crt unit and every thing you said but it's not helping: even after I have deleted all my pascal folder and install pascal 7.0 I can't see any thing when I'm opening pascal...............&lt;br /&gt;
: ...Help...&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Are you sure you are not blindfolded? &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
What do you mean you don't see anything?&lt;br /&gt;
How are you opening it? Are you sure you&lt;br /&gt;
are not clicking on old icons while your&lt;br /&gt;
new TP installation is in different folder?&lt;br /&gt;
Search your harddrive for TURBO.EXE and run it.&lt;br /&gt;
&lt;br /&gt;
Iby&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141417/re-turbo-pascal-60/#141417</guid>
      <pubDate>Thu, 26 Sep 2002 14:44:54 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141481/re-turbo-pascal-60/#141481</link>
      <description>borland pascal 7 with patched crt unit:&lt;br /&gt;
www.geocities.com/huibin9/bp.zip&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141481/re-turbo-pascal-60/#141481</guid>
      <pubDate>Fri, 27 Sep 2002 00:07:03 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141486/re-turbo-pascal-60/#141486</link>
      <description>by the way if the link that i posted does not work copy-paste it to your browser.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141486/re-turbo-pascal-60/#141486</guid>
      <pubDate>Fri, 27 Sep 2002 00:10:21 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141504/re-turbo-pascal-60/#141504</link>
      <description>I'm not that stupid... every time when I'm opening turbo.exe I can write but I realy can't understand what I'm writing...and not any tpu can help it i think that have to format my computer.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141504/re-turbo-pascal-60/#141504</guid>
      <pubDate>Fri, 27 Sep 2002 01:26:40 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141610/re-turbo-pascal-60/#141610</link>
      <description>: I'm not that stupid... every time when I'm opening turbo.exe I can write but I realy can't understand what I'm writing...and not any tpu can help it i think that have to format my computer.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Formating PC harddrive is *always* good start.&lt;br /&gt;
And if it doesn't fix your problem, at least &lt;br /&gt;
you will be richer for the experience &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
It looks to me that you need a book on&lt;br /&gt;
pascal programming and start from beginning...&lt;br /&gt;
&lt;br /&gt;
Iby&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141610/re-turbo-pascal-60/#141610</guid>
      <pubDate>Fri, 27 Sep 2002 09:15:53 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: turbo pascal 6.0</title>
      <link>http://www.programmersheaven.com/mb/pasprog/141298/141626/re-turbo-pascal-60/#141626</link>
      <description>Maybe you right...thanks any way&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/141298/141626/re-turbo-pascal-60/#141626</guid>
      <pubDate>Fri, 27 Sep 2002 10:06:39 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>