简要代码
/*
* File : print binary tree road between leaf A and leaf B
* Date : 2015/8/2
* Author : jinya
* Assert A --> B
* traverse root , left , right ; left , root , right ; left , right , root...
分类:
其他好文 时间:
2015-08-02 16:54:43
阅读次数:
138
Creating an AVI in memory with C++ The following example demonstrates how an avi file is completely created in memory./* MakeAviInMemory.cpp An exam.....
分类:
编程语言 时间:
2015-08-02 16:37:36
阅读次数:
127
Creating an generated Earth AVI with C++ EarthGenerator.cpp/* EarthGenerator.cpp An example on how to use AviMemDC.cpp Copyright (c) 1998-2003 Torbe.....
分类:
编程语言 时间:
2015-08-02 16:26:20
阅读次数:
255
// mix.cpp : 图像mix // #include "stdafx.h" #include #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/i...
分类:
编程语言 时间:
2015-08-02 13:19:54
阅读次数:
144
1 /*Author :usedrose */ 2 /*Created Time :2015/8/1 23:39:01*/ 3 /*File Name :2.cpp*/ 4 #pragma comment(linker, "/STACK:1024000000,1024000000") 5 #i...
分类:
编程语言 时间:
2015-08-02 00:46:56
阅读次数:
172
understanding of (lower bound,upper bound) binary search...
分类:
编程语言 时间:
2015-08-01 15:46:53
阅读次数:
167
字符串中各单词的翻转// 字符串中各单词的翻转.cpp : 定义控制台应用程序的入口点。
//#include "stdafx.h"
#include
#include
using namespace std;void RevStr(char* src)
{
char *start=src,*end=src,*ptr=src;
while(*...
分类:
其他好文 时间:
2015-07-31 20:29:07
阅读次数:
172
递归求汉诺塔的解// 递归求汉诺塔的解.cpp : 定义控制台应用程序的入口点。
//#include "stdafx.h"
#include
#include
#includevoid HanoiTower(int,char,char,char);
void main()
{
int n;
char A='A',B='B',...
分类:
其他好文 时间:
2015-07-31 18:32:43
阅读次数:
129
字符串中子串的查找// 字符串中子串的查找.cpp : 定义控制台应用程序的入口点。
//#include "stdafx.h"
#include
#includeconst char *strstr(const char* src,const char* sub)
{
const char* bp;
const char* sp; if(...
分类:
其他好文 时间:
2015-07-31 18:20:13
阅读次数:
111
在知乎上看到关于“Cpp的异常”的讨论,在此整理一下。C++ 引入异常的原因:1、为了能让构造函数报错(析构函数不能抛异常这是大家都知道的常识),毕竟构造函数没有返回值,没有异常的话调用方如何得知对象构造是否成功呢?2、让 dynamic_cast(baseReference) 能报错,因为没有 n...
分类:
其他好文 时间:
2015-07-30 23:05:32
阅读次数:
146