﻿<?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++博客-飛天-最新评论</title><link>http://www.cppblog.com/cjz/CommentsRSS.aspx</link><description>快乐的生活......</description><language>zh-cn</language><pubDate>Mon, 02 Jul 2012 09:13:42 GMT</pubDate><lastBuildDate>Mon, 02 Jul 2012 09:13:42 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: [ACM 1015] 组合数算法</title><link>http://www.cppblog.com/cjz/archive/2009/12/27/41936.html#104183</link><dc:creator>wcdj</dc:creator><author>wcdj</author><pubDate>Sun, 27 Dec 2009 02:48:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2009/12/27/41936.html#104183</guid><description><![CDATA[ if(n&lt;=m) <br>...<br>题目不是要求m&lt;=n吗？<br><br>yangjia41@126.com<br><img src ="http://www.cppblog.com/cjz/aggbug/104183.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">wcdj</a> 2009-12-27 10:48 <a href="http://www.cppblog.com/cjz/archive/2009/12/27/41936.html#104183#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [ACM 1001] 密码截获</title><link>http://www.cppblog.com/cjz/archive/2009/12/07/41461.html#102693</link><dc:creator>WonderCoder</dc:creator><author>WonderCoder</author><pubDate>Mon, 07 Dec 2009 01:41:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2009/12/07/41461.html#102693</guid><description><![CDATA[你的得一个程序输入123ab321就知道错在哪里了。。<img src ="http://www.cppblog.com/cjz/aggbug/102693.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">WonderCoder</a> 2009-12-07 09:41 <a href="http://www.cppblog.com/cjz/archive/2009/12/07/41461.html#102693#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 马踏棋盘问题</title><link>http://www.cppblog.com/cjz/archive/2009/03/29/41460.html#78282</link><dc:creator>网友</dc:creator><author>网友</author><pubDate>Sun, 29 Mar 2009 10:28:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2009/03/29/41460.html#78282</guid><description><![CDATA[怎么不写析构函数啊？<img src ="http://www.cppblog.com/cjz/aggbug/78282.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">网友</a> 2009-03-29 18:28 <a href="http://www.cppblog.com/cjz/archive/2009/03/29/41460.html#78282#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Web中的打印控制[未登录]</title><link>http://www.cppblog.com/cjz/archive/2009/02/12/56920.html#73530</link><dc:creator>fred</dc:creator><author>fred</author><pubDate>Thu, 12 Feb 2009 04:32:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2009/02/12/56920.html#73530</guid><description><![CDATA[有能使用高级功能的吗?例如设置打印机,打印份数和纸张,及进纸方式等.<br>发一份gaofei2111@163.com.<br>谢谢!<img src ="http://www.cppblog.com/cjz/aggbug/73530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">fred</a> 2009-02-12 12:32 <a href="http://www.cppblog.com/cjz/archive/2009/02/12/56920.html#73530#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [ACM 1002] 数字游戏</title><link>http://www.cppblog.com/cjz/archive/2008/08/25/41514.html#59859</link><dc:creator>飛天</dc:creator><author>飛天</author><pubDate>Mon, 25 Aug 2008 01:29:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2008/08/25/41514.html#59859</guid><description><![CDATA[@dengxp<br>以上程序是在Dev C++ 4.9.9.2上編譯。<br>在vs2005里sqrt,pow找不到對應的重載函數，所以要修改一下：<br>#include &quot;stdafx.h&quot;<br><br><br>#include &lt;iostream&gt;<br>#include &lt;math.h&gt;<br>using namespace std;<br><br>#define MAX 50<br><br>void solve(int number)<br>{<br>    int k=sqrt((float)number);<br>    for(int i=k;i&gt;1;--i)<br>    {<br>        int j=2;<br>        bool loop=true;<br>        while(loop)<br>        {<br>            if(pow((float)i,j)==number)<br>            {<br>                cout&lt;&lt;i&lt;&lt;&quot; &quot;&lt;&lt;j&lt;&lt;endl;<br>                return;<br>            }<br>            else if(pow((float)i,j)&gt;number)<br>                loop=false;<br>            else<br>                j++;<br>        }<br>    }<br>    cout&lt;&lt;0&lt;&lt;&quot; &quot;&lt;&lt;0&lt;&lt;endl;<br>}<br><br>int main()<br>{<br>    int input[MAX];<br>    int len=0;<br>    while((cin&gt;&gt;input[len])&amp;&amp;input[len]!=0)<br>    {<br>        if(input[len]&lt;0||input[len]&gt;pow(10.0,8))<br>            continue;<br>        len++;<br>    }<br>    for(int i=0;i&lt;len;++i)<br>        solve(input[i]);<br>    return 0;<br>}<img src ="http://www.cppblog.com/cjz/aggbug/59859.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">飛天</a> 2008-08-25 09:29 <a href="http://www.cppblog.com/cjz/archive/2008/08/25/41514.html#59859#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [ACM 1002] 数字游戏</title><link>http://www.cppblog.com/cjz/archive/2008/08/23/41514.html#59721</link><dc:creator>dengxp</dc:creator><author>dengxp</author><pubDate>Sat, 23 Aug 2008 03:03:00 GMT</pubDate><guid>http://www.cppblog.com/cjz/archive/2008/08/23/41514.html#59721</guid><description><![CDATA[为什么我提交总是通不过，下面是错误提示<br><br><br>(9) : error C2668: “sqrt”: 对重载函数的调用不明确<br>        VC8\include\math.h(581): 可能是“long double sqrt(long double)”<br>        VC8\include\math.h(533): 或“float sqrt(float)”<br>        VC8\include\math.h(128): 或“double sqrt(double)”<br>        试图匹配参数列表“(int)”时<br>(16) : error C2668: “pow”: 对重载函数的调用不明确<br>        VC8\include\math.h(575): 可能是“long double pow(long double,int)”<br>        VC8\include\math.h(527): 或“float pow(float,int)”<br>        VC8\include\math.h(489): 或“double pow(double,int)”<br>        试图匹配参数列表“(int, int)”时<br>(21) : error C2668: “pow”: 对重载函数的调用不明确<br>        VC8\include\math.h(575): 可能是“long double pow(long double,int)”<br>        VC8\include\math.h(527): 或“float pow(float,int)”<br>        VC8\include\math.h(489): 或“double pow(double,int)”<br>        试图匹配参数列表“(int, int)”时<br>(36) : error C2668: “pow”: 对重载函数的调用不明确<br>        VC8\include\math.h(575): 可能是“long double pow(long double,int)”<br>        VC8\include\math.h(527): 或“float pow(float,int)”<br>        VC8\include\math.h(489): 或“double pow(double,int)”<br>        试图匹配参数列表“(int, int)”时<br><img src ="http://www.cppblog.com/cjz/aggbug/59721.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cjz/" target="_blank">dengxp</a> 2008-08-23 11:03 <a href="http://www.cppblog.com/cjz/archive/2008/08/23/41514.html#59721#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>