
c++学习
师小猪
这个作者很懒,什么都没留下…
展开
-
leetCode 28 Implement strStr()
leetCode 28 Implement strStr() ,kmp原创 2015-08-26 21:58:29 · 316 阅读 · 0 评论 -
c++ 模板详解(一)
本文转载自: http://www.cnblogs.com/gw811/archive/2012/10/25/2738929.html C++模板 模板是C++支持参数化多态的工具,使用模板可以使用户为类或者函数声明一种一般模式,使得类中的某些数据成员或者成员函数的参数、返回值取得任意类型。 模板是一种对类型进行参数化的工具; 通常有两种形式:函数模板和转载 2015-07-24 20:40:55 · 250 阅读 · 0 评论 -
华为OJ刷题(一)计算字符串最后一个单词的长度
#include #include #include #include using namespace std; int NumOfFinalWord(string str) { if (str.length() == 0 || str.length() > 128) { return 0; } int num = 0; auto iter1 = str.crbegin()原创 2015-08-05 12:39:51 · 424 阅读 · 0 评论 -
opencv vs2008
在运行opencv书上一个小例子时,遇到了这样一个问题 1>main.cpp 1>正在链接... 1>main.obj : error LNK2019: 无法解析的外部符号 _cvDestroyWindow,该符号在函数 _main 中被引用 1>main.obj : error LNK2019: 无法解析的外部符号 _cvReleaseImage,该符号在函数 _main 中被引用 1原创 2015-08-06 15:59:24 · 429 阅读 · 0 评论 -
c++中抽象类与接口的区别
转载自:http://blog.youkuaiyun.com/wjeson/article/details/17096335转载 2015-09-15 12:02:46 · 355 阅读 · 0 评论