<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; qsort</title>
	<atom:link href="http://www.deanlee.cn/tag/qsort/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Thu, 22 Mar 2012 06:55:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>how to sort CAtlArray using qsort</title>
		<link>http://www.deanlee.cn/programming/how-to-sort-catlarray-using-qsort/</link>
		<comments>http://www.deanlee.cn/programming/how-to-sort-catlarray-using-qsort/#comments</comments>
		<pubDate>Sun, 12 Aug 2007 15:41:10 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[catlarray]]></category>

		<category><![CDATA[qsort]]></category>

		<category><![CDATA[source-code]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/technology/how-to-sort-catlarray-using-qsort/</guid>
		<description><![CDATA[This is nothing new at all,here is the source code:
CAtlArray< CSomeClass*> m_myArray;
qsort(m_myArray.GetData(), m_myArray.GetCount(), sizeof(CSomeClass*),
  (int(*)(const void*, const void*))SortTheArray);
&#160;
the Comparison function would look like the following:
int __cdecl SortTheArray(CSomeClass **pp1, CSomeClass **pp2)
{
    ....
}
]]></description>
			<content:encoded><![CDATA[<p>This is nothing new at all,here is the source code:</p>
<pre class="prettyprint">CAtlArray< CSomeClass*> m_myArray;
qsort(m_myArray.GetData(), m_myArray.GetCount(), sizeof(CSomeClass*),
  (int(*)(const void*, const void*))SortTheArray);</pre>
<p>&nbsp;</p>
<p>the Comparison function would look like the following:</p>
<pre class="prettyprint">int __cdecl SortTheArray(CSomeClass **pp1, CSomeClass **pp2)
{
    ....
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/how-to-sort-catlarray-using-qsort/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

