c2664

    0熱度

    1回答

    我是編程語言的初學者,需要您的幫助。 我從C語言獲得需要寫入C++ MFC的代碼。 在C語言中,我有像int32 float64這樣的代碼,當我把它們放到MFC應用程序中時,它們顯示出這個錯誤。 error C2664: cannot convert parameter 5 from 'float [1000]' to 'float64 []' error C2664: cannot conve

    1熱度

    2回答

    我有我在代碼的這部分標題中提到的錯誤。 component_t *buffer = new component_t[3 * width*height]; component_t getRawDataPtr(); ... for (unsigned int i = 0; i < width*height * 3; i = i + 3) { file.read((char

    2熱度

    2回答

    我想有一個函數根據給定的回調函數檢查某些條件。 認爲這代碼: class Foo{ template <class ParamType> struct IsGood { typedef bool (*Check)(typename const ParamType*, int other); }; template< typename ParamType > void DoSm

    -2熱度

    1回答

    我試圖使用STL函數transform將集合中的所有字符串轉換爲小寫。但是我得到了C2664的錯誤。我不知道我的代碼有什麼問題? set<string> mydoc; mydoc.insert("ABCD"); transform(mydoc.begin(), mydoc.end(), mydoc.begin(), ::tolower); copy(mydoc.begin(), mydoc.

    0熱度

    1回答

    我使用的是std::shared_ptr指向一個節點 template<typename T> class A { class Node { T data; std::shared_ptr<Node> link; Node(T data, std::shared_ptr<Node> link); }; void pus

    0熱度

    1回答

    我有編譯和運行使用WIN 32平臺在Visual Studio 2012年改變了平臺,X64之後的程序,它提供了以下錯誤信息: 「test_integration.cpp( 27):error C2664:'hcubature_v':無法將參數2從'int(__cdecl *)(unsigned int,unsigned int,const double *,void *,unsigned int

    0熱度

    2回答

    我不是一個C++程序員,我只是想在VS2010中基於crypto ++庫編譯一箇舊的DLL(VS6我認爲),以便調試它來查找出它是如何工作,我必須寫一些代碼,用另一種語言能夠閱讀的東西進行加密 當我嘗試編譯DLL我得到第一個類型名稱錯誤C2664在此位的代碼 #else /* _ITERATOR_DEBUG_LEVEL == 0 */ _Vector_val(_Alloc _Al = _

    0熱度

    1回答

    我想插入矩形對象到樹。這是插入功能的實現。 void TwoDimTree::insertNewNode(Rectangle dataIn) { insertNewRectangleUtility((&tree), dataIn); } void TwoDimTree::insertNewRectangleUtility(TwoDimTree** temp, Rectangle dat

    0熱度

    2回答

    我正在實施此代碼,但我收到一個錯誤。 http://curl.haxx.se/libcurl/c/ftpupload.html 該錯誤是在該位的代碼。 static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) { curl_off_t nread; /* in real-wo

    -4熱度

    2回答

    我有一個小的結構: struct price { char name[20]; char shop[20]; int pr; price *next; }; 甲功能不起作用: void show_info(price *&head, char cur) { bool found = 0; price *temp = new pr