c2664

    -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

    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

    0热度

    1回答

    我是编程语言的初学者,需要您的帮助。 我从C语言获得需要写入C++ MFC的代码。 在C语言中,我有像int32 float64这样的代码,当我把它们放到MFC应用程序中时,它们显示出这个错误。 error C2664: cannot convert parameter 5 from 'float [1000]' to 'float64 []' error C2664: cannot conve