<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：这样的一个需求的实现</title>
	<atom:link href="http://hqlong.com/2009/06/930.html/feed" rel="self" type="application/rss+xml" />
	<link>http://hqlong.com/2009/06/930.html</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 14:47:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>来自：小黑米</title>
		<link>http://hqlong.com/2009/06/930.html/comment-page-1#comment-378</link>
		<dc:creator>小黑米</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://hqlong.com/?p=930#comment-378</guid>
		<description>你的那个do{}while()也用的巧～ 我忘记了do{}while()的存在...</description>
		<content:encoded><![CDATA[<p>你的那个do{}while()也用的巧～ 我忘记了do{}while()的存在&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：机器人</title>
		<link>http://hqlong.com/2009/06/930.html/comment-page-1#comment-377</link>
		<dc:creator>机器人</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://hqlong.com/?p=930#comment-377</guid>
		<description>array_unshift这个函数用的妙啊，我用了array_push和array_reverse这两个函数来实现的。</description>
		<content:encoded><![CDATA[<p>array_unshift这个函数用的妙啊，我用了array_push和array_reverse这两个函数来实现的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小黑米</title>
		<link>http://hqlong.com/2009/06/930.html/comment-page-1#comment-376</link>
		<dc:creator>小黑米</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://hqlong.com/?p=930#comment-376</guid>
		<description>我的解法: 思路都差不多的
function num2name($x) {
	$arr = array ();
	
	while ( intval ( ($x - 1) / 26 ) ) {
		array_unshift ( $arr, ($x - 1) % 26 ); //入栈
		$x = intval ( ($x - 1) / 26 );
	}
	array_unshift ( $arr, ($x - 1) % 26 );
	
	foreach ( $arr as $v ) { //出栈
		echo sprintf ( &quot;%c&quot;, $v + 97 ); //把asiic转成字母,97为“a”
	}

}
$d = array(702,703,25,3234,24,1324,314,128,2,41,43324,243213,21341134,112344,10000);
foreach($d as $v) {
    num2name($v);
    echo &quot;\r&quot;;
}</description>
		<content:encoded><![CDATA[<p>我的解法: 思路都差不多的<br />
function num2name($x) {<br />
	$arr = array ();</p>
<p>	while ( intval ( ($x &#8211; 1) / 26 ) ) {<br />
		array_unshift ( $arr, ($x &#8211; 1) % 26 ); //入栈<br />
		$x = intval ( ($x &#8211; 1) / 26 );<br />
	}<br />
	array_unshift ( $arr, ($x &#8211; 1) % 26 );</p>
<p>	foreach ( $arr as $v ) { //出栈<br />
		echo sprintf ( &#8220;%c&#8221;, $v + 97 ); //把asiic转成字母,97为“a”<br />
	}</p>
<p>}<br />
$d = array(702,703,25,3234,24,1324,314,128,2,41,43324,243213,21341134,112344,10000);<br />
foreach($d as $v) {<br />
    num2name($v);<br />
    echo &#8220;\r&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
