<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;tid=367&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo-zh / C 练习实例58]]></title>
		<link>http://www.gentoo-zh.org/viewtopic.php?id=367</link>
		<description><![CDATA[C 练习实例58 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 29 Aug 2022 11:33:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[C 练习实例58]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=373#p373</link>
			<description><![CDATA[<p>题目：学用rectangle画方形。（在TC中实现）。</p><p>程序分析：无。</p><p>程序源代码：</p><div class="codebox"><pre><code>#include &quot;graphics.h&quot;
int main()
{
    int x0,y0,y1,x1,driver,mode,i;
    driver=VGA;mode=VGAHI;
    initgraph(&amp;driver,&amp;mode,&quot;&quot;);
    setbkcolor(YELLOW);
    x0=263;y0=263;y1=275;x1=275;
    for(i=0;i&lt;=18;i++)
    {
        setcolor(1);
        rectangle(x0,y0,x1,y1);
        x0=x0-5;
        y0=y0-5;
        x1=x1+5;
        y1=y1+5;
    }
    settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
    outtextxy(150,40,&quot;How beautiful it is!&quot;);
    line(130,60,480,60);
    setcolor(2);
    circle(269,269,137);
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 29 Aug 2022 11:33:30 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=373#p373</guid>
		</item>
	</channel>
</rss>
