<?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=336&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo中文社区 / C 练习实例27]]></title>
		<link>https://www.gentoo-zh.org/viewtopic.php?id=336</link>
		<description><![CDATA[C 练习实例27 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 29 Aug 2022 07:10:57 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[C 练习实例27]]></title>
			<link>https://www.gentoo-zh.org/viewtopic.php?pid=342#p342</link>
			<description><![CDATA[<p>题目：利用递归函数调用方式，将所输入的5个字符，以相反顺序打印出来。</p><p>程序分析：无。 </p><p>#include &lt;stdio.h&gt;</p><p>int main()<br />{<br />&#160; &#160; int i=5;<br />&#160; &#160; void palin(int n);<br />&#160; &#160; printf(&quot;请输入5个字符\40:\40&quot;);<br />&#160; &#160; palin(i);<br />&#160; &#160; printf(&quot;\n&quot;);<br />}<br />void palin(n)<br />int n;<br />{<br />&#160; &#160; char next;<br />&#160; &#160; if(n&lt;=1) {<br />&#160; &#160; &#160; &#160; next=getchar();<br />&#160; &#160; &#160; &#160; printf(&quot;相反顺序输出结果\40:\40&quot;);<br />&#160; &#160; &#160; &#160; putchar(next);<br />&#160; &#160; } else {<br />&#160; &#160; &#160; &#160; next=getchar();<br />&#160; &#160; &#160; &#160; palin(n-1);<br />&#160; &#160; &#160; &#160; putchar(next);<br />&#160; &#160; }<br />}</p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 29 Aug 2022 07:10:57 +0000</pubDate>
			<guid>https://www.gentoo-zh.org/viewtopic.php?pid=342#p342</guid>
		</item>
	</channel>
</rss>
