![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
mandy_limin
这个作者很懒,什么都没留下…
展开
-
C++编译问题集合(一)
error:no match for 'operator' and '')C++编译报这个错,是没有匹配的运算符,这个时候基本就是两种情况:一种是你的运算符头文件没有链接进来,一种是你自己的参数不对。我将自己的代码贴上来:std::cout其中volume是我定义的一个函数:int volume(){return height};当时反复检查输出觉得没有错误,后来定睛一看,原创 2016-09-25 11:46:00 · 4566 阅读 · 0 评论 -
warning:deprecated conversion from string constant to 'char*'
/***********************************************************************************************char *p="basic c++";********************************************************************************原创 2016-10-11 10:02:06 · 604 阅读 · 0 评论 -
error:LNK2019:无法解析的外部符号_imp_closesocket@4,该符号在函数_wmain中被引用
问题:1>------ 已启动生成: 项目: 21client, 配置: Debug Win32 ------1>正在编译...1>21client.cpp1>正在链接...1>21client.obj : error LNK2019: 无法解析的外部符号 __imp__closesocket@4,该符号在函数 _wmain 中被引用1>21client.obj : err转载 2016-10-21 14:16:14 · 15357 阅读 · 9 评论 -
C++中字符串函数的错误
warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.------------------原创 2016-11-09 11:51:54 · 568 阅读 · 0 评论 -
C++编译错误 error:cannot allocate an object of abstract type
错误:无法分配对象的抽象类型原因:在基类中声明的虚函数,没有在继承类中继承、实现。解决:将基类中声明的虚函数在继承类中继承实现,就可以new一个派生类了。原创 2016-10-20 11:50:21 · 8534 阅读 · 1 评论