<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум компьютерной помощи &mdash; Программы на С++]]></title>
		<link>https://itpmr.ru/viewtopic.php?id=718</link>
		<atom:link href="https://itpmr.ru/extern.php?action=feed&amp;tid=718&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Программы на С++».]]></description>
		<lastBuildDate>Thu, 29 Nov 2012 12:46:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Программы на С++]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123629#p123629</link>
			<description><![CDATA[]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 29 Nov 2012 12:46:17 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123629#p123629</guid>
		</item>
		<item>
			<title><![CDATA[Re: Программы на С++]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123628#p123628</link>
			<description><![CDATA[<p>Мужчина</p><p>#include&lt;stdio.h&gt;<br />#include&lt;conio.h&gt;<br />int funk(int n);<br />void main()<br />{<br />clrscr();<br />int n,d;<br />printf(&quot;‚ўҐ¤ЁвҐ зЁб«® n:\n&quot;);<br />scanf(&quot;%d&quot;,&amp;n);<br /> d=funk(n);<br />printf(&quot;%d&quot;,&amp;d);<br />getch();<br />}<br />int funk(int n)<br />{<br />clrscr();<br />int i;<br />if(n&gt;2)<br />{<br />for(i=n;i&lt;n*2-1;i++)<br />{<br />int d=0,k;<br />for(k=2; k&lt;=i/2; k++)<br />if(i%k==0)<br />d++;<br />if(d==0){<br />int t=i+2;<br />for(k=2;k&lt;t/2; k++)<br />if(t%k==0)<br />d++;<br />if(d==0)<br />printf(&quot;—Ёб«  %d Ё %d Ў«Ё§ҐжЁ&quot;,i,t);<br />else<br />printf(&quot;\t ЌҐв Ї а Ў«Ё§Ґж®ў\n&quot;);<br />}<br /> }<br />&nbsp; &nbsp;}&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 29 Nov 2012 12:21:46 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123628#p123628</guid>
		</item>
		<item>
			<title><![CDATA[Re: Программы на С++]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123627#p123627</link>
			<description><![CDATA[]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 29 Nov 2012 12:03:25 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123627#p123627</guid>
		</item>
		<item>
			<title><![CDATA[Re: Программы на С++]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123626#p123626</link>
			<description><![CDATA[<p>заставка.CPP</p><p>#include&lt;stdio.h&gt;<br />#include&lt;stdlib.h&gt;<br />#include&lt;graphics.h&gt;<br />#include&lt;conio.h&gt;<br />#include&lt;dos.h&gt;<br />#define PATH &quot;d:\\work\\borlandc\\bin\\&quot;</p><p>void okr(int x,int y,int r, int c)<br />{<br />&nbsp; &nbsp; setcolor (c);<br />&nbsp; &nbsp; circle(x,y,r);<br />}</p><br /><p>void main(void)<br />{<br />&nbsp; &nbsp; int gdriver=DETECT,gmode,errorcode,x,y,r=5,maxx;<br />&nbsp; &nbsp; #define dt 30<br />&nbsp; &nbsp; #define dx 5<br />&nbsp; &nbsp; initgraph(&amp;gdriver,&amp;gmode,PATH);<br />&nbsp; &nbsp; errorcode=graphresult();<br />&nbsp; &nbsp; if(errorcode==grOk)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; randomize();<br />&nbsp; &nbsp; &nbsp; &nbsp; x=10;<br />&nbsp; &nbsp; &nbsp; &nbsp; y=10;<br />&nbsp; &nbsp; &nbsp; &nbsp; maxx=getmaxx();<br />&nbsp; &nbsp; &nbsp; &nbsp; delay(2500);<br />&nbsp; &nbsp; &nbsp; &nbsp; while(y&lt;470)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(random(470),y,r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay(dt);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(random(470),y,r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y+=dx;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; while(x&lt;639)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(x,random(630),r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay(dt);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(x,random(630),r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x+=dx;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; while(x&gt;0&amp;&amp;y&gt;0)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(x,y,r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay(dt);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; okr(x,y,r,random(13)+1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x-=dx;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y-=dx/1.5;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; closegraph();<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;ЋиЁЎЄ :%d\n&quot;,errorcode);<br />&nbsp; &nbsp; &nbsp; &nbsp; puts(&quot;„«п § ўҐаиҐЁп Їа®Ја ¬¬л  ¦¬ЁвҐ &lt;Enter&gt;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; getch();<br />&nbsp; &nbsp; }</p><p>}</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 29 Nov 2012 12:03:00 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123626#p123626</guid>
		</item>
		<item>
			<title><![CDATA[Программы на С++]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123625#p123625</link>
			<description><![CDATA[]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 29 Nov 2012 11:59:54 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123625#p123625</guid>
		</item>
	</channel>
</rss>
