<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://www.gentoo-zh.org/extern.php?action=feed&amp;tid=359&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo中文社区 / C 练习实例50]]></title>
		<link>https://www.gentoo-zh.org/viewtopic.php?id=359</link>
		<description><![CDATA[C 练习实例50 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 29 Aug 2022 11:28:29 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[C 练习实例50]]></title>
			<link>https://www.gentoo-zh.org/viewtopic.php?pid=365#p365</link>
			<description><![CDATA[<p>题目：#include 的应用练习。</p><p>程序分析：无。</p><p>程序源代码：</p><p>test.h 文件代码如下：</p><p>#define LAG &gt;<br />#define SMA &lt;<br />#define EQ ==</p><p>主文件代码：</p><div class="codebox"><pre><code>#include &quot;test.h&quot;  
#include &lt;stdio.h&gt;

int main()
{
    int i=10;
    int j=20;
    if(i LAG j)
        printf(&quot;%d 大于 %d \n&quot;,i,j);
    else if(i EQ j)
        printf(&quot;%d 等于 %d \n&quot;,i,j);
    else if(i SMA j)
        printf(&quot;%d 小于 %d \n&quot;,i,j);
    else
        printf(&quot;没有值。\n&quot;);
    return 0;
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 29 Aug 2022 11:28:29 +0000</pubDate>
			<guid>https://www.gentoo-zh.org/viewtopic.php?pid=365#p365</guid>
		</item>
	</channel>
</rss>
