码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
主席树修正
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
C++虚函数、赋值兼容原则
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
c创建win窗口
windows程序设计示例: 1 #include "windows.h" 2 #pragma comment(lib, "winmm") 3 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMa.....
分类:Windows程序   时间:2015-07-08 07:04:01    阅读次数:211
单链表
基本操作:创建、查找、删除、插入 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语言帮助文档
在C语言中,平时对字符串的操作的是很多的,了解下常用的字符串函数会使 c 编程变得很快捷!这里适当整理一下,方便以后参考。使用时,会用到大量指针的操作,注意加头文件:#include 一、str 系列1.strstrchar * strstr( const char * str1, const ch...
分类:编程语言   时间:2015-07-08 00:29:53    阅读次数:160
Poj 2065 SETI (高斯消元)
题目连接: 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
POJ 2245 Lotto dfs
给出最多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
hdu2037-----------贪心, 活动安排问题
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 源码中分水岭算法 watershed 函数源码注解
为了研究分水岭算法,阅读了OpenCV 2.4.9 中watershed函数的源码实现部分,代码位于 opencv\sources\modules\imgproc\src\segmentation.cpp 文件中。先贴出加了注解的代码,以后补充对分水岭算法的解释。#include "precomp.hpp"/**********************************************...
分类:编程语言   时间:2015-07-07 22:51:38    阅读次数:675
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!