<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895389</guid>
        <pubDate>Mon, 16 May 2011 18:56:30 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895389</link>
        <description><![CDATA[lena1992: Сейчас запустила пишет: Ошибка: ожидался символ &quot;точка с запятой&quot;- Pascal ABC]]></description>
        <author>lena1992</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895368</guid>
        <pubDate>Mon, 16 May 2011 18:29:28 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895368</link>
        <description><![CDATA[volvo877: Если у тебя <strong class='tag-b'><span class="tag-color tag-color-named" data-value="red" style="color: red">не</span> Турбо-Паскаль</strong>, то добавь одно слово:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">const</div><div class="code_line">&nbsp;&nbsp; n = 10;</div><div class="code_line"><span style='color:red'>var</span></div><div class="code_line">&nbsp;&nbsp; a : array[1 .. n] of integer = (</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;1, 2, 3, 4, 5, 6, 7, 8, 9, 10</div><div class="code_line">&nbsp;&nbsp; );</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895365</guid>
        <pubDate>Mon, 16 May 2011 18:19:25 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2895365</link>
        <description><![CDATA[lena1992: Я сдавала, проверяили, и мне сказали что не правильно. Вот что препод сказал: не может присвоить значение константе...<br>
Помогите пжл кто чем сможет, почему не правильно...( <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-05-16T18:22:10+00:00">16.05.11, 18:22</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=331683&view=findpost&p=2895365'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>lena1992 &#064; <time class="tag-quote__quoted-time" datetime="2011-05-16T18:19:25+00:00">16.05.11, 18:19</time></span><div class='quote '> препод сказал</div></div><br>
Какой препод, блин сам паскаль говорит: <br>
не может присвоить значение константе... O:-)]]></description>
        <author>lena1992</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893832</guid>
        <pubDate>Fri, 13 May 2011 14:22:47 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893832</link>
        <description><![CDATA[lena1992: Сможете решить ее я что ни чего не поняла...... :&#39;( <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-05-13T14:24:34+00:00">13.05.11, 14:24</time></span></span><br>
Все спасибо всем большое)))]]></description>
        <author>lena1992</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893830</guid>
        <pubDate>Fri, 13 May 2011 14:21:37 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893830</link>
        <description><![CDATA[volvo877: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">const</div><div class="code_line">&nbsp;&nbsp; n = 10;</div><div class="code_line">&nbsp;&nbsp; a : array[1 .. n] of integer = (</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;1, 2, 3, 4, 5, 6, 7, 8, 9, 10</div><div class="code_line">&nbsp;&nbsp; );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp; i, j, T : integer;</div><div class="code_line">&nbsp;&nbsp; b : boolean;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; writeln(&#39;before:&#39;);</div><div class="code_line">&nbsp;&nbsp; for i := 1 to n do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;write(a[i]:4);</div><div class="code_line">&nbsp;&nbsp; writeln;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; for i := 1 to n - 1 do</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;b := odd(a[i]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;for j := i + 1 to n do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; if (odd(a[j]) = b) and (a[j] &#60; a[i] = b) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;T := a[i]; a[i] := a[j]; a[j] := T;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; writeln(&#39;after:&#39;);</div><div class="code_line">&nbsp;&nbsp; for i := 1 to n do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;write(a[i]:4);</div><div class="code_line">&nbsp;&nbsp; writeln;</div><div class="code_line">end.</div></ol></div></div></div></div><br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">before:</div><div class="code_line">&nbsp;&nbsp; 1 &nbsp; 2 &nbsp; 3 &nbsp; 4 &nbsp; 5 &nbsp; 6 &nbsp; 7 &nbsp; 8 &nbsp; 9 &nbsp;10</div><div class="code_line">after:</div><div class="code_line">&nbsp;&nbsp; 1 &nbsp;10 &nbsp; 3 &nbsp; 8 &nbsp; 5 &nbsp; 6 &nbsp; 7 &nbsp; 4 &nbsp; 9 &nbsp; 2</div></ol></div></div></div></div>Четные (2, 4, 6, 8, 10) отсортированы по убыванию, а нечетные (1, 3, 5, 7, 9) - по возрастанию... Идея - в том, что сравниваться (и обмениваться местами, разумеется) 2 элемента должны только тогда, когда они либо оба четные, либо оба - нечетные... Ну, а уж поменять направление сортировки в зависимости от четности/нечетности элементов - это вообще проще простого...]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893756</guid>
        <pubDate>Fri, 13 May 2011 13:02:22 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893756</link>
        <description><![CDATA[lena1992: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">procedure SelectionSort(var arr : array of Real; const N : Integer);</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp; &nbsp;I &nbsp; : &nbsp; Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;J &nbsp; : &nbsp; Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;K &nbsp; : &nbsp; Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;M &nbsp; : &nbsp; Real;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;m:=Arr[i-1];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;k:=i;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for j:=i to n do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if m&#62;Arr[j-1] then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m:=Arr[j-1];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;k:=j;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Arr[k-1]:=Arr[i-1];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Arr[i-1]:=m;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">end;</div></ol></div></div></div></div><br>
мммм а как,  т.е куда(место чего) нужно ввести значение not(odd)/odd в этой программе?]]></description>
        <author>lena1992</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893743</guid>
        <pubDate>Fri, 13 May 2011 12:50:25 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893743</link>
        <description><![CDATA[Булат Шакиров: Четные/нечетные - not(odd)/odd<br>
Сортировка - <br>
<a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=50914' target='_blank'>Как упорядочить массив по возрастанию?</a>]]></description>
        <author>Булат Шакиров</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893729</guid>
        <pubDate>Fri, 13 May 2011 12:35:18 +0000</pubDate>
        <title>Массивы</title>
        <link>https://forum.sources.ru/index.php?showtopic=331683&amp;view=findpost&amp;p=2893729</link>
        <description><![CDATA[lena1992: Ввести массив A(N). Упорядочить четные элементы массива по убыванию, а не четные по возрастанию. Вывести на печать исходный и преобразованный массивы.<br>Ребят помогите сможете решить эту задачку, понятия не имею, как делать]]></description>
        <author>lena1992</author>
        <category>Pascal</category>
      </item>
	
      </channel>
      </rss>
	