1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define PAU putchar(' ') 8 #define ENT putchar('\n') 9 #define lson x?x->ch[0]:x,....
分类:
其他好文 时间:
2015-07-08 08:15:32
阅读次数:
113
1 #include 2 3 class A 4 { 5 public: 6 void f1() 7 { cout f1();//a32 pa->f2();//d33 cout f1();//a37 fa->f2();//d38 cout << ...
分类:
编程语言 时间:
2015-07-08 07:07:33
阅读次数:
156
windows程序设计示例: 1 #include "windows.h" 2 #pragma comment(lib, "winmm") 3 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMa.....
基本操作:创建、查找、删除、插入 1 #include 2 #include 3 #include 4 5 #define OK 1 6 #define ERROR 0 7 #define TRUE 1 8 #define FALSE 0 9 #define ElementTy...
分类:
其他好文 时间:
2015-07-08 00:30:33
阅读次数:
199
在C语言中,平时对字符串的操作的是很多的,了解下常用的字符串函数会使 c 编程变得很快捷!这里适当整理一下,方便以后参考。使用时,会用到大量指针的操作,注意加头文件:#include 一、str 系列1.strstrchar * strstr( const char * str1, const ch...
分类:
编程语言 时间:
2015-07-08 00:29:53
阅读次数:
160
题目连接: http://poj.org/problem?id=2065题目描述: 给出和明码长度相同的暗码,暗码的每一个字母f(k)都是由明码ai按照f (k) = ∑0 2 #include 3 #include 4 #include 5 using namespace std; 6 ...
分类:
其他好文 时间:
2015-07-08 00:25:38
阅读次数:
114
给出最多13个数,从中选出6个数(升序)给出所有方案(升序输出)DFS水题#include #include #include using namespace std;const int N = 10;const int M = 16;int ans[N];int a[M];int n;void d...
分类:
其他好文 时间:
2015-07-08 00:09:28
阅读次数:
157
http://acm.hdu.edu.cn/showproblem.php?pid=2037(简单贪心-----活动安排)#include#includeusing namespace std;struct Node{ int l, r;}a[105];bool Cmp(Node x, Nod...
分类:
其他好文 时间:
2015-07-08 00:09:27
阅读次数:
156
#include /*包含输入输出头文件*/
#define ListSize 100
typedef int DataType;
typedef struct
{
DataType list[ListSize];
int length;
}SeqList;
void InitList(SeqList *L) /*将线性表初始化为空的线性表只需要把线性表的长度le...
分类:
其他好文 时间:
2015-07-07 23:01:08
阅读次数:
229
为了研究分水岭算法,阅读了OpenCV 2.4.9 中watershed函数的源码实现部分,代码位于 opencv\sources\modules\imgproc\src\segmentation.cpp 文件中。先贴出加了注解的代码,以后补充对分水岭算法的解释。#include "precomp.hpp"/**********************************************...
分类:
编程语言 时间:
2015-07-07 22:51:38
阅读次数:
675