??xml version="1.0" encoding="utf-8" standalone="yes"?>国产网站欧美日韩免费精品在线观看 ,欧美亚州一区二区三区 ,国产在线成人http://www.shnenglu.com/cc/category/582.html半亩方塘 天光云媄zh-cnMon, 19 May 2008 12:57:30 GMTMon, 19 May 2008 12:57:30 GMT60孙鑫VC视频教学W记20?/title><link>http://www.shnenglu.com/cc/archive/2007/05/29/25092.html</link><dc:creator>JetSun</dc:creator><author>JetSun</author><pubDate>Tue, 29 May 2007 10:48:00 GMT</pubDate><guid>http://www.shnenglu.com/cc/archive/2007/05/29/25092.html</guid><wfw:comment>http://www.shnenglu.com/cc/comments/25092.html</wfw:comment><comments>http://www.shnenglu.com/cc/archive/2007/05/29/25092.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/cc/comments/commentRss/25092.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cc/services/trackbacks/25092.html</trackback:ping><description><![CDATA[<h2 align=center>孙鑫VC视频教学W记20?br></h2> <p style="COLOR: #000000">   孙鑫老师的VC教学的视频在|上非常行Q我刚好看到|上有这个视频的学习W记Q这里把它A献出来与大家分n?br>下蝲<br>      <a title=孙鑫VC视频教学W记 href="http://www.shnenglu.com/Files/cc/vc_sx.zip">孙鑫VC视频教学W记</a></p> <img height=531 alt="" src="http://www.shnenglu.com/images/cppblog_com/cc/2007_5/spbj.jpg" width=670 border=0><br><br><br><br><br><img src ="http://www.shnenglu.com/cc/aggbug/25092.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cc/" target="_blank">JetSun</a> 2007-05-29 18:48 <a href="http://www.shnenglu.com/cc/archive/2007/05/29/25092.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Dev C++中配|ARM交叉~译环境http://www.shnenglu.com/cc/archive/2006/02/23/3440.htmlJetSunJetSunThu, 23 Feb 2006 06:28:00 GMThttp://www.shnenglu.com/cc/archive/2006/02/23/3440.htmlhttp://www.shnenglu.com/cc/comments/3440.htmlhttp://www.shnenglu.com/cc/archive/2006/02/23/3440.html#Feedback1http://www.shnenglu.com/cc/comments/commentRss/3440.htmlhttp://www.shnenglu.com/cc/services/trackbacks/3440.html在Dev C++中配|ARM交叉~译环境

       很多人都使用C/C++q行嵌入式开发,但是很多都是在Linuxq样的系l下q行的开发,很多人对linux的环境还不是很熟悉,所以我在这里要介绍的是在Windows环境下采用DevC++q行ARM交叉~译环境的设|?br />
    待箋?br />
  本来x文译的,但是没有旉Q所以干脆直接挂上来Q大家看看文把?br />  
    下蝲



JetSun 2006-02-23 14:28 发表评论
]]>
Dev-c++和VC2005中编译同一个程序出现的问题http://www.shnenglu.com/cc/archive/2005/12/30/2292.htmlJetSunJetSunFri, 30 Dec 2005 10:22:00 GMThttp://www.shnenglu.com/cc/archive/2005/12/30/2292.htmlhttp://www.shnenglu.com/cc/comments/2292.htmlhttp://www.shnenglu.com/cc/archive/2005/12/30/2292.html#Feedback5http://www.shnenglu.com/cc/comments/commentRss/2292.htmlhttp://www.shnenglu.com/cc/services/trackbacks/2292.htmlDev-c++和VC2005中编译同一个程序出现的问题

   有两D늨序,其实应该是一D늨序,只是E微有点不同。程?BR>
的主要目的很单,是要输?Q?5的^Ҏ和^斏V?/FONT>

   W一D在Dev-C++中编译通过的,叫E序一Q?/FONT>

 1#include <iostream>
 2#include <math.h>
 3using namespace std;
 4int main(){
 5    cout<<"N    qx?nbsp;   qx"<<endl;
 6    for(int i=1;i<=25;i++){
 7        cout<<i<<"\t"<<sqrt(i)<<"\t"<<pow(i,2)<<endl;
 8        }

 9        getchar();
10        return 0;
11}

12

   W二D在VC2005中编译通过的,叫E序二:
 1#include <iostream>
 2#include <math.h>
 3using namespace std;
 4int main(){
 5    cout<<"N    qx?nbsp;       qx"<<endl;
 6    for(int i=1;i<=25;i++){
 7        cout<<i<<"\t"<<sqrt((double)i)<<"\t\t"<<pow((double)i,2)<<endl;
 8        }

 9        getchar();
10        return 0;
11}

12
   两段E序的主要区别就是sqrt和pow函数中的参数cd?BR>
 
  现象Q?BR>         E序一在Dev-C++中可以轻易编译通过Q程序二在Dev-C++中也可以L~译通过?BR>          E序一在VC2005中无法编译通过Q程序二是可以的Q程序一在VC2005中编译的时候会提示以下错误?BR>   错误如下Q?/STRONG>
       Error 1 error C2668: 'sqrt' : ambiguous call to overloaded function e:\C\vc2005\2\p7\p7\3.cpp 7
      Error 2 error C2668: 'pow' : ambiguous call to overloaded function e:\C\vc2005\2\p7\p7\3.cpp 7

   
在Dev-C++中的math.h中,q两个数学函数的原型?BR>_CRTIMP double __cdecl pow (double, double);
_CRTIMP double __cdecl sqrt (double);
 
    在VC2005中的math.h中,q两个数学函数的原型?/STRONG>
        double  __cdecl pow(__in double _X, __in double _Y);
        double  __cdecl sqrt ((__in double _X);

 其中多出来的__in的介l如下:
 If you examine the library header files, you will notice some unusual annotations such as __in_z and __out_ecount_part. These are examples of Microsoft's standard source code annotation language (SAL), which provides a set of annotations to describe how a function uses its parameters—the assumptions it makes about them, and the guarantees it makes upon finishing. The header file <sal.h> defines the annotations.
具体的可以看
http://msdn2.microsoft.com/en-us/library/ms235402.aspx


      函数的原型都是差不多的,参数cd也是一栗intcd赋值给double应该是没有问题的Q会q行隐式转换Q不知道VC2005怎么不行Q一直都听说Dev-C++对C++的标准支持的很不错,微Y的最新的C++开发工具在支持C++标准斚w也取得了H飞猛进的进步,现在一个程序,在不同地方却不能同时~译通过Q我不知道是不是哪个Ҏ准的支持有什么问题,q是~译器提供的安全性不同的原因呢?疑惑ing?BR>    

JetSun 2005-12-30 18:22 发表评论
]]>
þùƷþ| þûƵ| 99þþƷѾƷһ | ޹˾ƷŮ˾þþ| þseֻоƷ| ˾þۺӰԺ| þþþƷһ| 91þø˾Ʒ| Ʒþþþþ³| þۺ| պӰþþñ| ƷۺϾþþþþ97| Ʒ˾þþ| Ʒѿþþ㽶| þ㽶97Ʒ| þĻ| 97þþþ| Ʒξþþþ99վ| һaƬþëƬ| Ʒþþþþþ| þ͵wcŮ| þþƷۺ| þþþ޾Ʒַ| 99þþƷһ| þþþavר| ۺ˾þۺ| þרƷ| ŷþۺ| 91þ㽶Ů߿| þþƷ˹ҹ| 91ƷۺϾþþƷ| ƷѸþ| þþþþAvӰԺ| þۺɫˮ99ž | Ӱһþþþó˾Ʒۺ | ŷƷһþ| þùƷһ| þþþþþ| ձƷþþþӰԺձ| þþþŮʦһ| þþþĻɫ |