![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++编程
文章平均质量分 71
HumanCoding
程序猿,挨踢男
展开
-
C/C++中vector的操作(排序、删除)
一、C++使用vector按多字段排序 C++当中vector的数据类型是基本类型时,我们利用std::sort很容易排序,当我们的类型是自定义的结构体,并且我们还要实现按多字段排序,我有两种方法: 1.我们通过重载operator方法来实现: 本例子实现了struct中多个字段排序: #include #include #include原创 2015-05-29 18:27:09 · 3272 阅读 · 0 评论 -
error LNK2019: 无法解析的外部符号 六处错误的纠正
错误 18 error LNK2019: 无法解析的外部符号 "public: void __thiscall cv::FeatureDetector::detect(class cv::Mat const &,class std::vector > &,class cv::Mat const &)const " (?detect@FeatureDetector@cv@@QBEXABV原创 2015-08-04 15:05:22 · 15571 阅读 · 0 评论 -
error LNK2005, already defined?
I have 2 files A.cpp and B.cpp files in a project "Win32 Console Application". Both 2 files have only 2 lines following code: #include "stdafx.h" int k; When compiling it threw the error原创 2015-08-05 10:38:54 · 727 阅读 · 0 评论