日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如果你学习C 请不要选择DevCpp

發布時間:2023/12/20 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如果你学习C 请不要选择DevCpp 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

分享一下我老師大神的人工智能教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

作者:朱金燦
來源:http://blog.csdn.net/clever101/


????? 有網友發信給我,說使用DevCpp編譯一個MTL庫的測試程序出現一堆莫名其妙的錯誤。


????? DevCpp我聽說過,以前也下載使用過,據說號稱Windows平臺下的gcc。結果我用DevCpp一編譯網友的程序,感覺此編譯器不堪大用。


????? 網友的測試程序是這樣的:

[cpp] view plaincopyprint?
  • #include?<iostream>??
  • #include?<boost/numeric/mtl/mtl.hpp>??
  • int?main(int?argc,?char*?argv[])??
  • {??
  • ????using?namespace?mtl;??
  • ????//?Define?dense?vector?of?doubles?with?10?elements?all?set?to?0.0.??
  • ????dense_vector<double>???v(10,?0.0);??
  • ????//?Set?element?7?to?3.0.??
  • ????v[7]=?3.0;??
  • ????std::cout?<<?"v?is?"?<<?v?<<?"/n";??
  • ????return?0;??
  • }??
  • #include <iostream>#include <boost/numeric/mtl/mtl.hpp>int main(int argc, char* argv[]){??? using namespace mtl;??? // Define dense vector of doubles with 10 elements all set to 0.0.??? dense_vector<double>?? v(10, 0.0);??? // Set element 7 to 3.0.??? v[7]= 3.0;??? std::cout << "v is " << v << "/n";??? return 0;}?


    ??????? 結果出現莫名其妙的錯誤,說實話它的編譯錯誤提示極為晦澀,我基本看不懂,只好以圖為證:



    ???? 但是我用VS 2008 + sp1編譯這個程序,則一點問題都沒有??纯淳W友怎么評論DevCpp的吧:


    ??????? Get rid of Dev-C++ and download VC++ 2008 Express.? If you have any difficulties after that, let us know.
    Dev-C++ has not been supported by its creators for a long time.? It is horribly out of date.? You might be able to just update your version of the compiler and keep the IDE as-is, but you get a really good debugger integrated with VC++ 2008 Express that really blows the competition away.


    評論來自:
    http://bbs.prog365.com/c-programming-on-using-mtl-matrix-template-library-in-dev-c-4.9.8.0-190-1-1.html


    ?????????? 所以在Windows平臺下學習C++,我建議你選擇VS 2005及更高版本的VS,或者選擇開源的CodeBlocks。







    ???????????

    給我老師的人工智能教程打call!http://blog.csdn.net/jiangjunshow

    總結

    以上是生活随笔為你收集整理的如果你学习C 请不要选择DevCpp的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。