摘要:
以下程序示范了链表插入和删除的操作// lst2.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;class List;class Iterator;class Node ... 阅读全文
摘要:
链表添加元素,然后插入、删除、最后遍历#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ list staff; staff.pus... 阅读全文
摘要:
// t1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "iostream"#include "cv.h"#include "highgui.h"#include "opencv2/opencv.hpp"using namespace std;... 阅读全文
摘要:
折半查找,效率lognvs2010在一个有序数列中查找指定元素的方法// bsearch.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** 在... 阅读全文
摘要:
在一个整型向量v中查找值a,返回相应的下标// lsearch.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** 在一个向量中找到一个元素 ... 阅读全文
摘要:
向量有两部分,前半部分和后半部分分别已经排序,合并,排序并归并到一个向量中。// mersort.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;/** ... 阅读全文
摘要:
vs2010+opencv2.40用cvnamewindows等函数做的。#include "iostream"#include "cv.h"#include "highgui.h"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ ... 阅读全文