2015年12月29日

摘要: 以下程序示范了链表插入和删除的操作// lst2.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;class List;class Iterator;class Node ... 阅读全文
posted @ 2015-12-29 18:06 抽筋的马 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 链表添加元素,然后插入、删除、最后遍历#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ list staff; staff.pus... 阅读全文
posted @ 2015-12-29 15:00 抽筋的马 阅读(244) 评论(0) 推荐(0) 编辑

2015年12月24日

摘要: // t1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "iostream"#include "cv.h"#include "highgui.h"#include "opencv2/opencv.hpp"using namespace std;... 阅读全文
posted @ 2015-12-24 23:25 抽筋的马 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 折半查找,效率lognvs2010在一个有序数列中查找指定元素的方法// bsearch.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** 在... 阅读全文
posted @ 2015-12-24 17:17 抽筋的马 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 在一个整型向量v中查找值a,返回相应的下标// lsearch.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** 在一个向量中找到一个元素 ... 阅读全文
posted @ 2015-12-24 16:34 抽筋的马 阅读(231) 评论(0) 推荐(0) 编辑

2015年12月23日

摘要: 向量有两部分,前半部分和后半部分分别已经排序,合并,排序并归并到一个向量中。// mersort.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** ... 阅读全文
posted @ 2015-12-23 23:42 抽筋的马 阅读(277) 评论(0) 推荐(0) 编辑
摘要: vs2010+opencv2.40用cvnamewindows等函数做的。#include "iostream"#include "cv.h"#include "highgui.h"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ ... 阅读全文
posted @ 2015-12-23 22:58 抽筋的马 阅读(217) 评论(0) 推荐(0) 编辑

导航