<?xml version="1.0" encoding="windows-1251"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Форум программистов</title>
		<link>http://www.programmersforum.ru/</link>
		<description>Форум профессиональных и начинающих программистов</description>
		<language>ru</language>
		<lastBuildDate>Fri, 18 May 2012 04:48:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://www.programmersforum.ru/images/1070/misc/rss.jpg</url>
			<title>Форум программистов</title>
			<link>http://www.programmersforum.ru/</link>
		</image>
		<item>
			<title><![CDATA[[C++] Не удаётся удалить динамическую строку, которую вернула функция]]></title>
			<link>http://www.programmersforum.ru/showthread.php?t=201070&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 03:58:35 GMT</pubDate>
			<description>Здравствуйте. 
Всё время я не заморачивался насчёт освобождения кучи, и вот настал момент, когда дипломный проект может из-за этого сильно...</description>
			<content:encoded><![CDATA[<div>Здравствуйте.<br />
Всё время я не заморачивался насчёт освобождения кучи, и вот настал момент, когда дипломный проект может из-за этого сильно пострадать. <br />
<br />
<font size="4">по сабжу:</font><br />
У меня есть структуры данных и функция DataToString у каждой, для превращения всех полей в одну строку, указатель на которую она возвращает к источнику вызова.<br />
Источник читает данные, а строка продолжает висеть в памяти.<br />
В <a href="http://programmersforum.ru/showthread.php?t=200124&amp;highlight=delete+%EE%F8%E8%E1%EA%E0" target="_blank">одной теме</a> сказали очевидную вещь: &quot;Удалить указатель, в который записывается результат функции&quot;, но у меня чёто не получается =). <br />
Напишу короткий упрощенный код (вставлю псевдомакросы),<br />
<font size="4">как я это делаю:</font><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">char*&nbsp; &nbsp; &nbsp; &nbsp; SStruct::DataToString(){<br />
&nbsp; char*out; // выходная строка.<br />
&nbsp; size = CountResSize(SStruct.data[]); // считаю, сколько знакомест займут данные в структуре, плюс пробелы и прочее.<br />
&nbsp; out = new char[size+1];<br />
&nbsp; strcpy(out,data[0]);<br />
&nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; strcat(out,IntToString(data[1])); <br />
&nbsp; .<br />
&nbsp; .<br />
&nbsp; .<br />
&nbsp; return out; // тут всё замечательно. строка корректная.<br />
};<br />
<br />
main(){<br />
&nbsp;char*d;<br />
&nbsp;for (int i=0;i&lt;ALOT!;i++){<br />
&nbsp; &nbsp; d= MyS.DataToString()<br />
&nbsp; &nbsp; delete [] d; // убиваю строку, которая находится по этой ссылке.<br />
&nbsp; &nbsp; // Debug Error; DAMAGE: after Normal Block (#67) at <i>0xsomeaddr</i><br />
&nbsp; &nbsp; delete d; // тоже самое, пишу на всякий случай ;).<br />
&nbsp;}<br />
}</code><hr />
</div>Не понимаю - я ведь создаю через new, ссылку получаю в main и могу же я ее убить delete :(<br />
<br />
Ребят, если кого не затруднит, напишите, пожалуйста, как работать со ссылками на строку.<br />
<br />
<font size="4">Полный код затронутых функций:</font><br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">//---------------------------------------------- <br />
// atoms.cpp<br />
char* IntToString(int num){<br />
&nbsp; &nbsp; &nbsp; &nbsp; int dim = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool minus;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int tmp = num;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (num &lt; 0) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minus = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = -num;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else minus = 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // определить разрядность<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (tmp/10 != 0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp/10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dim++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; };<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // выделить память<br />
&nbsp; &nbsp; &nbsp; &nbsp; char* str;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int index = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; str = new char [dim+1 + minus];<br />
&nbsp; &nbsp; &nbsp; &nbsp; // копировать каждую цифру в массив<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (minus) tmp = -num; else tmp = num;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i = dim+minus ; i&gt;0+minus; i--)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (tmp%10){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 0: str[i-1]='0'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1: str[i-1]='1'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2: str[i-1]='2'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3: str[i-1]='3'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4: str[i-1]='4'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 5: str[i-1]='5'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 6: str[i-1]='6'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 7: str[i-1]='7'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 8: str[i-1]='8'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 9: str[i-1]='9'; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = tmp / 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (minus) str[0] = '-';<br />
&nbsp; &nbsp; &nbsp; &nbsp; str[dim+minus] = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return str;<br />
}<br />
/////<br />
char*&nbsp; &nbsp; &nbsp; &nbsp; SLecture::DataToString(){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Выделяем переменные<br />
&nbsp; &nbsp; &nbsp; &nbsp; char*out; // выходная строка.<br />
&nbsp; &nbsp; &nbsp; &nbsp; int&nbsp; &nbsp; &nbsp; &nbsp; size = 0; // вычисление размера этой строки, согласно совокупному количеству знаков, которые занимают записи.<br />
&nbsp; &nbsp; &nbsp; &nbsp; int ITEMS = 6; // количество полей в данной записи.<br />
&nbsp; &nbsp; &nbsp; &nbsp; int SPACES = ITEMS -1; // количество пробелов в записи.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Вычисляется общая длина записи.<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Day));<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Group));<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Lector));<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Number));<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Room));<br />
&nbsp; &nbsp; &nbsp; &nbsp; size += strlen(IntToString(Subject));&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Выделяется строка, в которой вместятся все символы из записей, разделяющие пробелы, нуль-знак<br />
&nbsp; &nbsp; &nbsp; &nbsp; out = new char[size + 1 + SPACES ];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcpy(out,IntToString(Day));<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,IntToString(Group));<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,IntToString(Lector));<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,IntToString(Number));<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,IntToString(Room));<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; strcat(out,IntToString(Subject));<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; out[size + 1 + SPACES] = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return out;<br />
}<br />
//---------------------------------------------- <br />
// main<br />
#include &lt;iostream&gt;<br />
#include &quot;atoms.h&quot;<br />
#include &lt;vector&gt;<br />
#include &lt;windows.h&gt;<br />
using namespace std;<br />
<br />
void main(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; // SLector<br />
&nbsp; &nbsp; &nbsp; &nbsp; // SLecture<br />
&nbsp; &nbsp; &nbsp; &nbsp; // SRoom<br />
&nbsp; &nbsp; &nbsp; &nbsp; // SSubject<br />
#define TEST SLecture<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; TEST x[2];<br />
&nbsp; &nbsp; &nbsp; &nbsp; x[0].Set(1,1,1,1,1,1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; x[1].Set(x[0].DataToString());<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; vector &lt;TEST&gt; vec;<br />
&nbsp; &nbsp; &nbsp; &nbsp; vec.push_back(x[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; vec.push_back(x[1]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; char*d =0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i =0;i&lt;10000; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d = vec[0].DataToString();&nbsp; // здесь очень сильная утечка памяти<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; ::CharToOem(d,d);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;d&lt;&lt;endl;<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>Познающий</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201070</guid>
		</item>
		<item>
			<title>ответьте на вопрос (delphi)</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201068&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 03:33:47 GMT</pubDate>
			<description>возможно ли из кода составить форму?</description>
			<content:encoded><![CDATA[<div>возможно ли из кода составить форму?</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>Serega_999</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201068</guid>
		</item>
		<item>
			<title>просьба! как можно переделать код макроса, чтобы корректно искал?</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201067&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 03:22:31 GMT</pubDate>
			<description>макрос не срабатывает! выгрузили более объемную базу и пипец встряли...чего то ему не нравится(( может это из-за формата ячейки? или еще что?</description>
			<content:encoded><![CDATA[<div>макрос не срабатывает! выгрузили более объемную базу и пипец встряли...чего то ему не нравится(( может это из-за формата ячейки? или еще что?</div>


	<br />
	<div style="padding:8px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Вложения</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.programmersforum.ru/images/1070/attach/rar.gif" alt="Тип файла: rar" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.programmersforum.ru/attachment.php?attachmentid=50928&amp;d=1337311346">ИАСК сортировка.rar</a> (45.1 Кб)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=20">Microsoft Office Excel</category>
			<dc:creator>Nick31</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201067</guid>
		</item>
		<item>
			<title>перебор массива</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201066&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 02:22:42 GMT</pubDate>
			<description>посчитать сумму всех элементов массива от 1 до 5 
пожалуйста помогите, вопрос жизни и смерти! Очень срочно!</description>
			<content:encoded><![CDATA[<div>посчитать сумму всех элементов массива от 1 до 5<br />
пожалуйста помогите, вопрос жизни и смерти! Очень срочно!</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>TYS</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201066</guid>
		</item>
		<item>
			<title>Программа в Visual studio</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201065&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 02:07:40 GMT</pubDate>
			<description>Помогите с программой. 
Примечание: информационную систему необходимо реализовать как Windows-приложение в среде Visual Studio .NET...</description>
			<content:encoded><![CDATA[<div>Помогите с программой.<br />
Примечание: информационную систему необходимо реализовать как Windows-приложение в среде Visual Studio .NET<br />
Задание:Запрограммировать информационную систему со следующими параметрами: <br />
I. Логическая структура: набор структур. Структура содержит минимум 3 поля. Поля должны быть различных типов. Обязательно использование строкового типа. <br />
II. Способ хранения: файл. <br />
III. Функции: <br />
а) поиск стурктуры по двум полям, <br />
б) удаление этой стурктуры, <br />
в) создание нового файла из удаленных стурктур в исходном, <br />
г) добавление стурктуры, <br />
д) печать файла, <br />
е) диаграмма.</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>lord2012</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201065</guid>
		</item>
		<item>
			<title>большие числа, нужны идеи.</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201064&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 23:38:58 GMT</pubDate>
			<description><![CDATA[Здравствуйте. Требуется написать программу "реализация сложения и вычитания очень больших чисел ( 2^32 и больше)". "Мы" написали умножение, и теперь...]]></description>
			<content:encoded><![CDATA[<div>Здравствуйте. Требуется написать программу &quot;реализация сложения и вычитания очень больших чисел ( 2^32 и больше)&quot;. &quot;Мы&quot; написали умножение, и теперь не знаем как переделать на сложение и вычитание. Прошу помочь. Спасибо заранее.</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=51">Visual C++</category>
			<dc:creator>bombozavr</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201064</guid>
		</item>
		<item>
			<title>Отображение матрицы в DataGridView</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201063&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 22:32:24 GMT</pubDate>
			<description>Не могу выполнить следующее - организовать ввод из 2-х textbox параметры матрицы А(n*m)...соответственно n и m вводимые с клавиатуры столько раз...</description>
			<content:encoded><![CDATA[<div>Не могу выполнить следующее - организовать ввод из 2-х textbox параметры матрицы А(n*m)...соответственно n и m вводимые с клавиатуры столько раз сколько захочется, при этом они должны отобразиться в DataGridView и по заданной формуле и условию преобразоваться в параметр P:<br />
<br />
Где формула и условие: Aij = exp(А*i)*sin(В*j) и &quot;Максимальный элемент, который в наименьшей степени отличается от среднего арифметического значения элементов матрицы.&quot;<br />
<br />
Это жесть...<br />
<br />
При условии, что у меня есть элемент которым я могу после каждого единичного ввода затирать параметры n и m...</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=59">C#</category>
			<dc:creator>diallfam</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201063</guid>
		</item>
		<item>
			<title>Сохранение в БД</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201062&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 22:06:02 GMT</pubDate>
			<description>подскажите пожалуйста в чем ошибка, почему не сохраняется запись в БД при нажатии на кнопку (добавить!!!!!!!!!!!!!!!!) заполнении полей и нажатии на...</description>
			<content:encoded><![CDATA[<div>подскажите пожалуйста в чем ошибка, почему не сохраняется запись в БД при нажатии на кнопку (добавить!!!!!!!!!!!!!!!!) заполнении полей и нажатии на кнопку ок<br />
<br />
<a href="http://www.programmersforum.ru/attachment.php?attachmentid=50927" target="_blank" title="Название: 
Просмотров: 

Размер: ">Вложение 50927</a></div>


	<br />
	<div style="padding:8px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Вложения</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.programmersforum.ru/images/1070/attach/rar.gif" alt="Тип файла: rar" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.programmersforum.ru/attachment.php?attachmentid=50927&amp;d=1337292276">Программа.rar</a> (386.4 Кб)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=5">БД в Delphi</category>
			<dc:creator>IgoreKMaN</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201062</guid>
		</item>
		<item>
			<title>Даны длины отрезков  a,b,c,d,e.Выяснить,можно ли построить треугольник со сторонами {a,b,c},{b,c,d},{c,d,e}?Если да,то найдите пло</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201061&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:47:07 GMT</pubDate>
			<description>Даны длины отрезков  a,b,c,d,e.Выяснить,можно ли построить треугольник со сторонами {a,b,c},{b,c,d},{c,d,e}?Если да,то найдите площадь...</description>
			<content:encoded><![CDATA[<div>Даны длины отрезков  a,b,c,d,e.Выяснить,можно ли построить треугольник со сторонами {a,b,c},{b,c,d},{c,d,e}?Если да,то найдите площадь соответсвующего треугольника.проверку на возможность составления треугольника и вычисление площади оформите в виде подпрограммы.</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=7">Паскаль</category>
			<dc:creator>kazbek1</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201061</guid>
		</item>
		<item>
			<title>Текстовый файл. В текстовом файле t1 записана последовательность целых чисел,разделенных пробелами (пробелов можеть быть больше од</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201060&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:45:55 GMT</pubDate>
			<description>Текстовый файл. В текстовом файле t1 записана последовательность целых чисел,разделенных пробелами (пробелов можеть быть больше одного).Написать...</description>
			<content:encoded><![CDATA[<div>Текстовый файл. В текстовом файле t1 записана последовательность целых чисел,разделенных пробелами (пробелов можеть быть больше одного).Написать процедуру,записывающую в текстый файл t2 все положительные цисла с t1:(</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=7">Паскаль</category>
			<dc:creator>kazbek1</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201060</guid>
		</item>
		<item>
			<title>Задачи з паскаля  новичку!!</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201059&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:41:24 GMT</pubDate>
			<description>1) В трехзначном числе зачеркнули первую цифру слева; когда полученное двухзначные число умножили на 7, получили начальное трехзначное число. Найти...</description>
			<content:encoded><![CDATA[<div>1) В трехзначном числе зачеркнули первую цифру слева; когда полученное двухзначные число умножили на 7, получили начальное трехзначное число. Найти его.<br />
2) Создать массив случайных целых чисел заданного количества и с указанного диапазона. Найти сколько положительных, отрицательных и нулевых элементов в массиве.<br />
3) Создать текстовый файл с несколькими строками. Отыскать и вывести самую длинную и самую маленькую строку из указанного текстового файла.<br />
4)Создать матрицу 4 &#215; 4: Найти сумму элементов, которые находятся ниже побочной диагонали, сумму элементов, находящихся на основной диагонали.</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>seva.tsimbalisty</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201059</guid>
		</item>
		<item>
			<title>задача по аналогии</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201058&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:32:35 GMT</pubDate>
			<description>Вот нашла похожую программу на сумму( файл прикреплен ниже №1) 
своя же очень очень похожая, но когда исправляю, видать что то лишнее делаю, помогите...</description>
			<content:encoded><![CDATA[<div>Вот нашла похожую программу на сумму( файл прикреплен ниже №1)<br />
своя же очень очень похожая, но когда исправляю, видать что то лишнее делаю, помогите исправить,( моя задача №2)<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">uses crt;<br />
var xn,xk,h,x,t,e,s:real;<br />
&nbsp; &nbsp; i:integer;<br />
begin<br />
clrscr;<br />
repeat<br />
write('Введите начало интервала |x|&lt;1 xn=');<br />
readln(xn);<br />
until abs(xn)&lt;1;<br />
repeat<br />
write('Введите конец интервала x&gt;',xn:0:1,' x&lt;1 xk=');<br />
readln(xk);<br />
until (xk&gt;xn)and(xn&lt;1);<br />
repeat<br />
write('Введите шаг табуляции h &gt;0 и &lt;',xk-xn:0:1,' h=');<br />
readln(h);<br />
until (h&gt;0)and(h&lt;xk-xn);<br />
repeat<br />
write('Введите точность (0;1) e=');readln(e);{точность типа 0,0001}<br />
until (e&gt;0)and(e&lt;1);<br />
writeln('Табулирование функции y=Arth(x) для |x|&lt;1');<br />
writeln('на интервале [',xn:0:1,';',xk:0:1,'] с шагом ',h:0:1);<br />
writeln('-------------------------------');<br />
writeln('|&nbsp; x&nbsp; |&nbsp; &nbsp; S&nbsp; &nbsp; |&nbsp; &nbsp; Ln&nbsp;  | N |');<br />
writeln('-------------------------------');<br />
x:=xn;<br />
while x&lt;=xk+h/2 do<br />
&nbsp;begin<br />
&nbsp; s:=x;<br />
&nbsp; t:=x;<br />
&nbsp; i:=0;{нулевое значение}<br />
&nbsp; while abs(t)&gt;e do<br />
&nbsp;  begin<br />
&nbsp; &nbsp; i:=i+1;<br />
&nbsp; &nbsp; t:=t*x*x;<br />
&nbsp; &nbsp; s:=s+t/(2*i+1);<br />
&nbsp;  end;<br />
&nbsp; writeln('|',x:4:1,' |',s:8:4,' |',0.5*ln((1+x)/(1-x)):8:4,' |',i+1:3,'|');<br />
&nbsp; x:=x+h;<br />
&nbsp;end;<br />
writeln('---------------------------------');<br />
readln<br />
end.</code><hr />
</div></div>


	<br />
	<div style="padding:8px">

	

	

	
		<fieldset class="fieldset">
			<legend>Изображения</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.programmersforum.ru/images/1070/attach/jpg.gif" alt="Тип файла: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.programmersforum.ru/attachment.php?attachmentid=50923&amp;d=1337290278" target="_blank">№1.jpg</a> (63.6 Кб)</td>
</tr><tr>
	<td><img class="inlineimg" src="http://www.programmersforum.ru/images/1070/attach/jpg.gif" alt="Тип файла: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.programmersforum.ru/attachment.php?attachmentid=50926&amp;d=1337290337" target="_blank">2(моя задача).jpg</a> (11.3 Кб)</td>
</tr>
			</table>
			</fieldset>
	

	
		<fieldset class="fieldset">
			<legend>Вложения</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.programmersforum.ru/images/1070/attach/txt.gif" alt="Тип файла: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.programmersforum.ru/attachment.php?attachmentid=50925&amp;d=1337290337" target="_blank">1.txt</a> (1.0 Кб)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>Ania Lunee</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201058</guid>
		</item>
		<item>
			<title>процедуры и функции</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201056&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:23:39 GMT</pubDate>
			<description>Даны длины отрезков  a,b,c,d,e.Выяснить,можно ли построить треугольник со сторонами {a,b,c},{b,c,d},{c,d,e}?Если да,то найдите площадь...</description>
			<content:encoded><![CDATA[<div>Даны длины отрезков  a,b,c,d,e.Выяснить,можно ли построить треугольник со сторонами {a,b,c},{b,c,d},{c,d,e}?Если да,то найдите площадь соответсвующего треугольника.проверку на возможность составления треугольника и вычисление площади оформите в виде подпрограммы.:(</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=7">Паскаль</category>
			<dc:creator>kazbek1</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201056</guid>
		</item>
		<item>
			<title>Умер Пень 3</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201055&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:09:18 GMT</pubDate>
			<description>Всем доброго времени суток  
Умер пинек 3 (Был у меня как палегон, для теста всякой лабуды) 
У компьютера был длительный простой , вскоре решил...</description>
			<content:encoded><![CDATA[<div>Всем доброго времени суток <br />
Умер пинек 3 (Был у меня как палегон, для теста всякой лабуды)<br />
У компьютера был длительный простой , вскоре решил включить но не вышло, монитор не каких признаков работы не подаёт просто лампа в режиме ожидания моргает и всё, кулер процесора крутит , сам процесор вроде работает (проверял пальцом :d слегка начинал нагреваться), отключил всё в том числе и оперативную память , ноль реакции , так же крутиться процесорный кулер, динамик сигнала не выдал лампочка на материнской плате непрерывно горит, в чем может быть проблема? неужели отпохал своё старичок . . . ? :confused:</div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=46">Железо</category>
			<dc:creator>ClMlD</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201055</guid>
		</item>
		<item>
			<title>нужно исправить ошибку</title>
			<link>http://www.programmersforum.ru/showthread.php?t=201054&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 21:05:43 GMT</pubDate>
			<description><![CDATA[в конкретном случае (a>1/a) при а= 0 естественно ошибка деление на ноль, как этого избежать??? 
 
 
Код: 
--------- 
Uses CRT; 
Var a,b: real; 
begin...]]></description>
			<content:encoded><![CDATA[<div>в конкретном случае (a&gt;1/a) при а= 0 естественно ошибка деление на ноль, как этого избежать???<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Uses CRT;<br />
Var a,b: real;<br />
begin<br />
clrscr;<br />
writeln('vvedite coordinati tichki a');Read(a,b);<br />
if (a&gt;1/a) and ((sqr(a)+sqr(b))&lt;4)<br />
then write ('Prinadlegit')<br />
else write ('Ne Prinadlegit');<br />
Readln;<br />
readln;<br />
end.</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.programmersforum.ru/forumdisplay.php?f=31">Помощь студентам</category>
			<dc:creator>Ania Lunee</dc:creator>
			<guid isPermaLink="true">http://www.programmersforum.ru/showthread.php?t=201054</guid>
		</item>
	</channel>
</rss>

