![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
breeze5428
这个作者很懒,什么都没留下…
展开
-
C++笔记——std::min_element和std::max_element
参考网页:http://en.cppreference.com/w/cpp/algorithm/min_element主要有两种用法template ForwardIt min_element( ForwardIt first, ForwardIt last );和templateForwardIt min_element( ForwardIt翻译 2014-05-15 22:04:30 · 14526 阅读 · 0 评论 -
C++编程故障处理——error: assignment of read-only data-member ‘std::pair
尝试直接修改map中某个pair的key时给出的报错。由报错可原创 2014-06-21 10:54:35 · 15322 阅读 · 0 评论 -
C++编程笔记——从map时中删除元素
#include #include using namespace std;int main(){ map map1; map::iterator mapit; map::iterator saveit; map1[1] = 1; map1[2] = 2; map1[3] = 3; map1[4] = 4; mapit原创 2014-06-18 21:29:34 · 4443 阅读 · 0 评论 -
Main函数参数argc,argv说明
参考:http://wiki.opencv.org.cn/index.php/Main%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0argc%EF%BC%8Cargv%E8%AF%B4%E6%98%8E原创 2014-06-16 18:49:16 · 1127 阅读 · 0 评论 -
C++编程故障处理—— conversion from ‘__gnu_cxx::__normal_iterator
报错:conversion from ‘__gnu_cxx::__normal_iterator原因:将const型的迭代器赋值给了非原创 2014-06-14 18:58:25 · 7598 阅读 · 0 评论 -
C++编程故障处理——multiple definition of
http://yumaoshu.com/?p=235C++的multiple definition of *** first defined here错误原创 2014-06-14 14:49:42 · 1682 阅读 · 0 评论 -
C++笔记——标准IO库
头文件:转载 2014-06-13 14:58:10 · 826 阅读 · 0 评论 -
C++编程故障处理——redefinition
报错:../src/includes/×××.cpp:24: error: ‘const double vv [9]’ previously defined here../src/includes/HOG.cpp:34: error: redefinition of ‘class Point2DAbhishek’原创 2014-06-10 09:41:16 · 5727 阅读 · 0 评论 -
C++编程故障处理——实参不依赖模板参数
#include template class Base{public: void exit(){};}; template class Derived : public Base{public: void foo(){ exit(); }}; int main(int argc, char* argv[]){ Derived原创 2014-05-20 21:45:33 · 6821 阅读 · 1 评论 -
C++笔记——equal_range
// map::equal_range#include #include int main (){ std::map mymap; mymap['a']=10; mymap['b']=20; mymap['c']=30; std::pair::iterator,std::map::iterator> ret; ret = mymap.equal_range('原创 2014-05-21 15:47:57 · 3770 阅读 · 1 评论 -
C++故障排除-VS2010 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmai
报错:VS2010 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStar参考:http://www.cnblogs.com/ziwuge/archive/2011/03/10/1979607.html我的解决:.进入project->sett原创 2015-09-13 23:40:20 · 5020 阅读 · 0 评论