﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-力为的技术博客-随笔分类-Tools</title><link>http://www.cppblog.com/mythma/category/550.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 15 May 2012 08:15:33 GMT</lastBuildDate><pubDate>Tue, 15 May 2012 08:15:33 GMT</pubDate><ttl>60</ttl><item><title>Perforce的shelved 命令</title><link>http://www.cppblog.com/mythma/archive/2012/05/15/174961.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Tue, 15 May 2012 05:24:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2012/05/15/174961.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/174961.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2012/05/15/174961.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/174961.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/174961.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天体验了一下P4的shelved和Unshelved命令，多人共享pending的changes更方便了！&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2012/05/15/174961.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/174961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2012-05-15 13:24 <a href="http://www.cppblog.com/mythma/archive/2012/05/15/174961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我的原创技术随笔大全（2000~2009）</title><link>http://www.cppblog.com/mythma/archive/2010/01/09/105218.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Fri, 08 Jan 2010 17:13:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2010/01/09/105218.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/105218.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2010/01/09/105218.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/105218.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/105218.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:   二十一世纪的第一个十年过去了，回顾了一下这些年写的博客，发现自己也没闲着。但不免也有些遗憾，内容大都是关于知识、经验和技术，而关于思考和idea的却比较少。期待下一个十年吧！<br>    第一篇日志是在2004年发布在CSDN的博客上（记得开始不叫博客），截至到现在累积了不少东西了。为了怀念这过去的十年（2000~2003是个空白期，那段时间国内好像也没博客，网络也不发达，信息也闭塞），特整理了一下，称作我的原创技术随笔大全（2000~2009）&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2010/01/09/105218.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/105218.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2010-01-09 01:13 <a href="http://www.cppblog.com/mythma/archive/2010/01/09/105218.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Vista 远程连接设置</title><link>http://www.cppblog.com/mythma/archive/2010/01/08/105204.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Fri, 08 Jan 2010 14:14:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2010/01/08/105204.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/105204.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2010/01/08/105204.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/105204.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/105204.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2010/01/08/105204.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/105204.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2010-01-08 22:14 <a href="http://www.cppblog.com/mythma/archive/2010/01/08/105204.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Boost.Python与C++互操作的问题（更新）</title><link>http://www.cppblog.com/mythma/archive/2009/09/13/96051.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Sun, 13 Sep 2009 08:16:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2009/09/13/96051.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/96051.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2009/09/13/96051.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/96051.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/96051.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 现在有一个C++类库Mythma.dll，需要Python用户也可以调用这些服务，所以需要用封装其为Python扩展模块Mythma.pyd。<br>现在有可执行程序PythonConsole.exe，依赖Mythma.dll模块，希望PythonConsole.exe可以调用Python脚本，所以PythonConsole.exe中需要嵌入Python解析器。<br><br>测试过程中遇到一个十分奇怪的问题。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2009/09/13/96051.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/96051.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2009-09-13 16:16 <a href="http://www.cppblog.com/mythma/archive/2009/09/13/96051.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>STL容器误用一则</title><link>http://www.cppblog.com/mythma/archive/2009/03/10/76157.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Tue, 10 Mar 2009 14:47:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2009/03/10/76157.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/76157.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2009/03/10/76157.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/76157.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/76157.html</trackback:ping><description><![CDATA[<br><strong>一、需求：</strong><br><br><span style="FONT-FAMILY: 楷体_GB2312">现在需要用一个容器存放若干对象的指针（AObject*），对象指针在容器中的顺序按照对象某个属性（pObject-&gt;GetValue();）从低到高排序。</span><br><br><span style="FONT-SIZE: 14pt"><strong>二、"解决"方法：<br></strong></span><br><strong>1. 使用std::set</strong><br><span style="FONT-FAMILY: 楷体_GB2312">set中的元素是按照一定的顺序的存放的（根据元素的大小）。通过制定set的第二个模板参数就可以让它按我们的要求顺序排放。<br><br>先写一个函数对象：<br></span><br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #008000">//</span><span style="COLOR: #008000">&nbsp;object&nbsp;compare&nbsp;functor</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">&nbsp;CompareObject<br><img id=Codehighlighter1_46_152_Open_Image onclick="this.style.display='none'; Codehighlighter1_46_152_Open_Text.style.display='none'; Codehighlighter1_46_152_Closed_Image.style.display='inline'; Codehighlighter1_46_152_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_46_152_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_46_152_Closed_Text.style.display='none'; Codehighlighter1_46_152_Open_Image.style.display='inline'; Codehighlighter1_46_152_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_46_152_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_46_152_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">operator</span><span style="COLOR: #000000">()&nbsp;(AObject</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;lhv,&nbsp;AObject</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">&nbsp;rhv)<br><img id=Codehighlighter1_98_150_Open_Image onclick="this.style.display='none'; Codehighlighter1_98_150_Open_Text.style.display='none'; Codehighlighter1_98_150_Closed_Image.style.display='inline'; Codehighlighter1_98_150_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_98_150_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_98_150_Closed_Text.style.display='none'; Codehighlighter1_98_150_Open_Image.style.display='inline'; Codehighlighter1_98_150_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_98_150_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_98_150_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;lhv</span><span style="COLOR: #000000">-&gt;</span><span style="COLOR: #000000">GetValue()&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;rhv</span><span style="COLOR: #000000">-&gt;</span><span style="COLOR: #000000">GetValue();<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">&nbsp;decleare&nbsp;the&nbsp;object&nbsp;container;</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">typedef&nbsp;std::</span><span style="COLOR: #0000ff">set</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">AObject</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">,&nbsp;CompareObject</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;AObjectContainer;<br>&nbsp;&nbsp; AObjectContainer setContainer;</span></div>
<p><br><span style="FONT-FAMILY: 楷体_GB2312">这种方法有啥问题？<br>(见文后）<br><br></span></p>
<p><strong>2.&nbsp;使用std::list</strong><br><span style="FONT-FAMILY: 楷体_GB2312">list中的元素默认不会排序，需要我们&#8220;手动&#8221;排序。<br>用list这样声明：<br><br></span></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">typedef&nbsp;std::list</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">AObject</span><span style="COLOR: #000000">*&gt;</span><span style="COLOR: #000000">&nbsp;AObjectContainer;<br>&nbsp;&nbsp; AObjectContainer listContainer;</span></div>
<p><br><span style="FONT-FAMILY: 楷体_GB2312">添加完元素后，再排序：<br><br>（1）使用std::sort?<br>可注意了，std::list貌似不支持用std::sort进行用户自定义排序，反正我是没有试成功（有兴趣的同学可以解释一下）。假如这样写是错误的：</span><br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">std::sort(listContainer.begin(),&nbsp;listContainer.end(),&nbsp;CompareObject());</span></div>
<p><br><span style="FONT-FAMILY: 楷体_GB2312">（2）使用list.sort()</span><br></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">listContainer.sort(CompareObject());</span></div>
<br>
<p><br><span style="FONT-SIZE: 14pt"><strong>三、分析<br></strong></span></p>
<span style="FONT-FAMILY: 楷体_GB2312">方法1存在非常严重的问题——内存泄漏。<br>set中的元素是按序排列（此处是按object.GetValue()的大小排序，我们把这个值也叫key吧），注意的是set中不存在key值相等的元素。假如要插入的元素在set中已经存在会发生什么呢？是用新的元素替换原来的元素还是保留原来的元素呢？（有兴趣有时间的同学帮忙做个实验吧）但有一点可以肯定，有一个被遗失了。如果set中存放的是对象，还没啥问题。但现在set中存放的是指针，于是内存便泄漏了。</span>
<img src ="http://www.cppblog.com/mythma/aggbug/76157.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2009-03-10 22:47 <a href="http://www.cppblog.com/mythma/archive/2009/03/10/76157.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>运算符 &amp;&amp; 和 || </title><link>http://www.cppblog.com/mythma/archive/2009/02/25/74933.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 25 Feb 2009 15:33:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2009/02/25/74933.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/74933.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2009/02/25/74933.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/74933.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/74933.html</trackback:ping><description><![CDATA[晚上大脑短路了，不小心这了这么一段代码：<br><br>&nbsp;bool bSelected = false;<br>for( int ii=0; ii&lt;m_Count; ++ii)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_Selector.begin();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bSelected = bSelected || m_Selector.select(m_Elm[ii]);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_Selector.end();<br>}<br><br>打算实现的功能：<br>找出m_Elem里所有可以被选中的东东。<br><br>结果被 || 运算符给郁闷了一把。由于大脑短路忘记了&#8220;短路原则&#8221;。<br>
<img src ="http://www.cppblog.com/mythma/aggbug/74933.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2009-02-25 23:33 <a href="http://www.cppblog.com/mythma/archive/2009/02/25/74933.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Debug] 解决图形没有显示的问题</title><link>http://www.cppblog.com/mythma/archive/2009/02/25/74874.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 25 Feb 2009 03:59:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2009/02/25/74874.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/74874.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2009/02/25/74874.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/74874.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/74874.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 很多因素都可以导致图形没有显示，先总结以下几条，欢迎补充。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2009/02/25/74874.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/74874.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2009-02-25 11:59 <a href="http://www.cppblog.com/mythma/archive/2009/02/25/74874.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>屏幕截图工具V2</title><link>http://www.cppblog.com/mythma/archive/2008/08/06/58182.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 06 Aug 2008 13:59:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2008/08/06/58182.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/58182.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2008/08/06/58182.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/58182.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/58182.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: N年前，做过一个简陋的抓图工具，这里,源代码在这里 。<br><br>最近就更新了一下，就又有了这一款仿QQ的屏幕抓图工具软件。<br><br>在这里下载<br><br>主要功能：<br>&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2008/08/06/58182.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/58182.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2008-08-06 21:59 <a href="http://www.cppblog.com/mythma/archive/2008/08/06/58182.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VC2008 竟然不带 glaux.lib！</title><link>http://www.cppblog.com/mythma/archive/2008/04/20/47674.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Sun, 20 Apr 2008 09:47:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2008/04/20/47674.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/47674.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2008/04/20/47674.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/47674.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/47674.html</trackback:ping><description><![CDATA[该lib在VC2005存放的目录：<br>...\Microsoft Visual Studio 8\VC\PlatformSDK\Lib<br><br>在VC2008下竟然没有！难道还要单独安装Windows SDK？<br><br>只有暂且先借VC2005的用一下 :( <br><br><a href="http://www.cppblog.com/Files/mythma/GLAux.zip">glaux下载</a><br>
<img src ="http://www.cppblog.com/mythma/aggbug/47674.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2008-04-20 17:47 <a href="http://www.cppblog.com/mythma/archive/2008/04/20/47674.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用wxWidgets做界面</title><link>http://www.cppblog.com/mythma/archive/2007/10/26/35275.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Fri, 26 Oct 2007 15:16:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2007/10/26/35275.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/35275.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2007/10/26/35275.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/35275.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/35275.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: C++下做跨平台的GUI，MS用的广泛的有QT和wxWidgets。QT有开源版，但限制较多；wxWidgets各种小组件确实很多，但看了它的auidemo例子，才增强了使用的信心。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2007/10/26/35275.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/35275.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2007-10-26 23:16 <a href="http://www.cppblog.com/mythma/archive/2007/10/26/35275.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>五个小矮人分桃子-一道小学生的作业题目</title><link>http://www.cppblog.com/mythma/archive/2007/06/25/26923.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Mon, 25 Jun 2007 10:07:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2007/06/25/26923.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/26923.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2007/06/25/26923.html#Feedback</comments><slash:comments>15</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/26923.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/26923.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 近日老吴把他读小学的儿子的一道题拿给几个兄弟做，推来推去煞是麻烦。无奈用程序暴力破解之。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2007/06/25/26923.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/26923.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2007-06-25 18:07 <a href="http://www.cppblog.com/mythma/archive/2007/06/25/26923.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[tool]文件夹比较</title><link>http://www.cppblog.com/mythma/archive/2007/03/02/19102.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Fri, 02 Mar 2007 01:30:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2007/03/02/19102.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/19102.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2007/03/02/19102.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/19102.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/19102.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: diff 可以比较文件<br>现需要比较文件夹，写了个简单的工具。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2007/03/02/19102.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/19102.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2007-03-02 09:30 <a href="http://www.cppblog.com/mythma/archive/2007/03/02/19102.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>A Class Capturing Video by DShow</title><link>http://www.cppblog.com/mythma/archive/2006/11/12/15070.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Sun, 12 Nov 2006 06:10:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2006/11/12/15070.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/15070.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2006/11/12/15070.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/15070.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/15070.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: no crap only codes&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2006/11/12/15070.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/15070.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2006-11-12 14:10 <a href="http://www.cppblog.com/mythma/archive/2006/11/12/15070.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>A simple Game</title><link>http://www.cppblog.com/mythma/archive/2006/11/09/14911.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Thu, 09 Nov 2006 09:36:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2006/11/09/14911.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/14911.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2006/11/09/14911.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/14911.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/14911.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: If you like, you can download it.&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2006/11/09/14911.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/14911.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2006-11-09 17:36 <a href="http://www.cppblog.com/mythma/archive/2006/11/09/14911.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>理发师问题的实现</title><link>http://www.cppblog.com/mythma/archive/2006/04/07/5147.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Fri, 07 Apr 2006 10:42:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2006/04/07/5147.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/5147.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2006/04/07/5147.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/5147.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/5147.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 理发师问题是一个经典的信号同步问题，具体就不多罗嗦了<br>用MFC实现界面和源码如下&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2006/04/07/5147.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/5147.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2006-04-07 18:42 <a href="http://www.cppblog.com/mythma/archive/2006/04/07/5147.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>波形显示不是很难</title><link>http://www.cppblog.com/mythma/archive/2006/03/15/4212.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 15 Mar 2006 14:26:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2006/03/15/4212.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/4212.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2006/03/15/4212.html#Feedback</comments><slash:comments>15</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/4212.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/4212.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 封装了一下波形显示，发现不是很难<br>&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2006/03/15/4212.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/4212.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2006-03-15 22:26 <a href="http://www.cppblog.com/mythma/archive/2006/03/15/4212.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VC+ADO操作数据库注意事项（1）</title><link>http://www.cppblog.com/mythma/archive/2006/01/04/2435.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 04 Jan 2006 14:28:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2006/01/04/2435.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/2435.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2006/01/04/2435.html#Feedback</comments><slash:comments>13</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/2435.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/2435.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:       用ADO在VC下进行数据库客户端开发，稍有不甚就会出现致命错误，错误提示又匪夷所思，因此需要小心翼翼。最近做的个项目时，我是深深的体会到这一点。针对出现的问题，我总结了以下几点。&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2006/01/04/2435.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/2435.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2006-01-04 22:28 <a href="http://www.cppblog.com/mythma/archive/2006/01/04/2435.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>屏幕截图工具V1[附源码]</title><link>http://www.cppblog.com/mythma/archive/2005/12/25/2067.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Sun, 25 Dec 2005 03:00:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2005/12/25/2067.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/2067.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2005/12/25/2067.html#Feedback</comments><slash:comments>21</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/2067.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/2067.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 前段时间仿照QQ的截图工具，我也做了一个。有很多朋友跟我索要源码，今天就把它放了上来供大家参考:)。原理其实很简单，需要了解的可以下源码看一下。如果你改进后，请不要忘记给我也发一份 &nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2005/12/25/2067.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/2067.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2005-12-25 11:00 <a href="http://www.cppblog.com/mythma/archive/2005/12/25/2067.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>屏幕截图DIY</title><link>http://www.cppblog.com/mythma/archive/2005/11/17/1176.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Thu, 17 Nov 2005 14:23:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2005/11/17/1176.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/1176.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2005/11/17/1176.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/1176.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/1176.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: QQ有一个截图的工具，用起来感觉还不错。由于经常需要截图，忽然就想自己DIY一个。<br><br>&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2005/11/17/1176.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/1176.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2005-11-17 22:23 <a href="http://www.cppblog.com/mythma/archive/2005/11/17/1176.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[GDI+]由彩色到黑白（II） </title><link>http://www.cppblog.com/mythma/archive/2005/11/16/1157.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 16 Nov 2005 07:24:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2005/11/16/1157.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/1157.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2005/11/16/1157.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/1157.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/1157.html</trackback:ping><description><![CDATA[修改了一下，可以批量转换。<IMG height=19 src="http://www.cppblog.com/Emoticons/77_77.gif" width=19 border=0><BR><IMG height=376 alt=CToG_020.JPG src="http://www.cppblog.com/images/cppblog_com/mythma/CToG_020.JPG" width=324 border=0><BR><IMG height=411 alt=CToG_021.JPG src="http://www.cppblog.com/images/cppblog_com/mythma/CToG_021.JPG" width=365 border=0><BR><BR><A href=" http://mythma.bokee.com/inc/Color2Grayscale2.rar ">程序下载</A><img src ="http://www.cppblog.com/mythma/aggbug/1157.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2005-11-16 15:24 <a href="http://www.cppblog.com/mythma/archive/2005/11/16/1157.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[GDI+]由彩色到黑白</title><link>http://www.cppblog.com/mythma/archive/2005/11/16/1147.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Wed, 16 Nov 2005 02:13:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2005/11/16/1147.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/1147.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2005/11/16/1147.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/1147.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/1147.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 由彩色到黑白GDI+实现，very easy！&nbsp;&nbsp;<a href='http://www.cppblog.com/mythma/archive/2005/11/16/1147.html'>阅读全文</a><img src ="http://www.cppblog.com/mythma/aggbug/1147.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2005-11-16 10:13 <a href="http://www.cppblog.com/mythma/archive/2005/11/16/1147.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>矩形相含问题</title><link>http://www.cppblog.com/mythma/archive/2005/11/01/888.html</link><dc:creator>力为</dc:creator><author>力为</author><pubDate>Tue, 01 Nov 2005 03:16:00 GMT</pubDate><guid>http://www.cppblog.com/mythma/archive/2005/11/01/888.html</guid><wfw:comment>http://www.cppblog.com/mythma/comments/888.html</wfw:comment><comments>http://www.cppblog.com/mythma/archive/2005/11/01/888.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cppblog.com/mythma/comments/commentRss/888.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mythma/services/trackbacks/888.html</trackback:ping><description><![CDATA[<FONT color=#0000ff>问题：</FONT><BR><FONT color=#ff0000>长和宽已知的两个矩形A和B，判断B能否放入到A里面。</FONT><BR><BR>
<HR>
<BR><FONT color=#008000>下面是用C语言的实现版本V0.1：（若有错误恳请斧正<IMG height=19 src="http://www.cppblog.com/Emoticons/74_74.gif" width=19 border=0>）<BR></FONT><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG id=Code_Closed_Image onclick="this.style.display='none'; Code_Closed_Text.style.display='none'; Code_Open_Image.style.display='inline'; Code_Open_Text.style.display='inline';" height=16 src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" width=11 align=top><IMG id=Code_Open_Image style="DISPLAY: none" onclick="this.style.display='none'; Code_Open_Text.style.display='none'; Code_Closed_Image.style.display='inline'; Code_Closed_Text.style.display='inline';" height=16 src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" width=11 align=top><SPAN id=Code_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">我的解答</SPAN><SPAN id=Code_Open_Text style="DISPLAY: none"><BR><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">#include&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">math.h</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top>#ifndef&nbsp;max<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#define</SPAN><SPAN style="COLOR: #000000">&nbsp;max(a,b)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(((a)&nbsp;&gt;&nbsp;(b))&nbsp;?&nbsp;(a)&nbsp;:&nbsp;(b))</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#endif</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top>#ifndef&nbsp;min<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#define</SPAN><SPAN style="COLOR: #000000">&nbsp;min(a,b)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(((a)&nbsp;&lt;&nbsp;(b))&nbsp;?&nbsp;(a)&nbsp;:&nbsp;(b))</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">#endif</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;main(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;argc,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">char</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;argv[])<BR><IMG id=Codehighlighter1_198_1053_Open_Image onclick="this.style.display='none'; Codehighlighter1_198_1053_Open_Text.style.display='none'; Codehighlighter1_198_1053_Closed_Image.style.display='inline'; Codehighlighter1_198_1053_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_198_1053_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_198_1053_Closed_Text.style.display='none'; Codehighlighter1_198_1053_Open_Image.style.display='inline'; Codehighlighter1_198_1053_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_198_1053_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_198_1053_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;lA,&nbsp;wA,&nbsp;lB,&nbsp;wB;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(argc&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">4</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_239_332_Open_Image onclick="this.style.display='none'; Codehighlighter1_239_332_Open_Text.style.display='none'; Codehighlighter1_239_332_Closed_Image.style.display='inline'; Codehighlighter1_239_332_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_239_332_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_239_332_Closed_Text.style.display='none'; Codehighlighter1_239_332_Open_Image.style.display='inline'; Codehighlighter1_239_332_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_239_332_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_239_332_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lA&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;atof(argv[</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">]);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wA&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;atof(argv[</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">]);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lB&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;atof(argv[</SPAN><SPAN style="COLOR: #000000">3</SPAN><SPAN style="COLOR: #000000">]);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wB&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;atof(argv[</SPAN><SPAN style="COLOR: #000000">4</SPAN><SPAN style="COLOR: #000000">]);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_341_457_Open_Image onclick="this.style.display='none'; Codehighlighter1_341_457_Open_Text.style.display='none'; Codehighlighter1_341_457_Closed_Image.style.display='inline'; Codehighlighter1_341_457_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_341_457_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_341_457_Closed_Text.style.display='none'; Codehighlighter1_341_457_Open_Image.style.display='inline'; Codehighlighter1_341_457_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_341_457_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_341_457_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Input&nbsp;the&nbsp;length&nbsp;and&nbsp;width&nbsp;of&nbsp;two&nbsp;rectangles:\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scanf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">%lf&nbsp;%lf&nbsp;%lf&nbsp;%lf</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">lA,&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">wA,&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">lB,&nbsp;</SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000">wB);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(min(lA,&nbsp;wA)&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;min(lB,&nbsp;wB))<BR><IMG id=Codehighlighter1_492_532_Open_Image onclick="this.style.display='none'; Codehighlighter1_492_532_Open_Text.style.display='none'; Codehighlighter1_492_532_Closed_Image.style.display='inline'; Codehighlighter1_492_532_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_492_532_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_492_532_Closed_Text.style.display='none'; Codehighlighter1_492_532_Open_Image.style.display='inline'; Codehighlighter1_492_532_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_492_532_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_492_532_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0&nbsp;Can't!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;tmp&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;(lA&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;lA&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;wA&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;wA&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;lB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;lB&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;wB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;wB)</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #000000">2</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">lB</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">wB);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(tmp&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0.0</SPAN><SPAN style="COLOR: #000000">&nbsp;)<BR><IMG id=Codehighlighter1_617_658_Open_Image onclick="this.style.display='none'; Codehighlighter1_617_658_Open_Text.style.display='none'; Codehighlighter1_617_658_Closed_Image.style.display='inline'; Codehighlighter1_617_658_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_617_658_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_617_658_Closed_Text.style.display='none'; Codehighlighter1_617_658_Open_Image.style.display='inline'; Codehighlighter1_617_658_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_617_658_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_617_658_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">1&nbsp;Can't!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(tmp&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1.0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_678_713_Open_Image onclick="this.style.display='none'; Codehighlighter1_678_713_Open_Text.style.display='none'; Codehighlighter1_678_713_Closed_Image.style.display='inline'; Codehighlighter1_678_713_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_678_713_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_678_713_Closed_Text.style.display='none'; Codehighlighter1_678_713_Open_Image.style.display='inline'; Codehighlighter1_678_713_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_678_713_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_678_713_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">OK!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;arcsin&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;asin(tmp)</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">2.0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(arcsin&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0.000001</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000">&nbsp;arcsin&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">3.141593</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">2.0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_798_838_Open_Image onclick="this.style.display='none'; Codehighlighter1_798_838_Open_Text.style.display='none'; Codehighlighter1_798_838_Closed_Image.style.display='inline'; Codehighlighter1_798_838_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_798_838_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_798_838_Closed_Text.style.display='none'; Codehighlighter1_798_838_Open_Image.style.display='inline'; Codehighlighter1_798_838_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_798_838_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_798_838_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">2&nbsp;Can't!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;lAmin&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;lB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;cos(arcsin)&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;wB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;sin(arcsin);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">double</SPAN><SPAN style="COLOR: #000000">&nbsp;wAmin&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;lB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;sin(arcsin)&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;wB&nbsp;</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">&nbsp;cos(arcsin);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(lA&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;lAmin&nbsp;</SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000">&nbsp;wA&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;wAmin)<BR><IMG id=Codehighlighter1_979_1019_Open_Image onclick="this.style.display='none'; Codehighlighter1_979_1019_Open_Text.style.display='none'; Codehighlighter1_979_1019_Closed_Image.style.display='inline'; Codehighlighter1_979_1019_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_979_1019_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_979_1019_Closed_Text.style.display='none'; Codehighlighter1_979_1019_Open_Image.style.display='inline'; Codehighlighter1_979_1019_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_979_1019_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cppblog.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_979_1019_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">3&nbsp;Can't!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;printf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">OK!\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align=top></SPAN></SPAN></DIV><BR><img src ="http://www.cppblog.com/mythma/aggbug/888.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mythma/" target="_blank">力为</a> 2005-11-01 11:16 <a href="http://www.cppblog.com/mythma/archive/2005/11/01/888.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>