码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
HDU 2665
划分树 求一段区间第K大值 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int MAXN=100010; 8 int tree[30][MAXN]; 9 int sorted[MAXN];....
分类:其他好文   时间:2015-11-08 14:50:08    阅读次数:175
Android--获取标题栏,状态栏,屏幕高度
获取状态栏高度Rect frame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(frame); int statusBarHeight = frame.top; 获取actionBar的高宽度有一个属.....
分类:移动开发   时间:2015-11-08 14:45:13    阅读次数:178
中序线索化二叉树
#define _CRT_SECURE_NO_WARNINGS#include#include#includeusing namespace std;typedef struct tree{ char data; int ltag; int rtag; tree *lchild; tree *rch...
分类:其他好文   时间:2015-11-08 14:41:53    阅读次数:279
OpenCV教程【002 VideoCapture加载并播放视频】
#include #include using namespace std;using namespace cv;//opencv3.0 alpha加载并播放视频 2015.11.07int main(int argc, char* argv[]){ const char* vedioName...
分类:其他好文   时间:2015-11-08 14:34:19    阅读次数:284
OpenCV教程【001 Mat显示图片】
#include #include #include using namespace cv;using namespace std;int main(){ Mat img = imread("FreeBamb.jpg"); if (img.empty()) { cou...
分类:其他好文   时间:2015-11-08 14:33:54    阅读次数:241
C++ String与int转换
#include #include #include using namespace std;string int2str(int &i) { string s; stringstream ss(s); ss << i; return ss.str();}int main(i...
分类:编程语言   时间:2015-11-08 14:28:07    阅读次数:143
递归算法及经典递归例子代码实现( 转自http://www.cnblogs.com/joinclear)
递归(recursion):程序调用自身的编程技巧。 递归满足2个条件: 1)有反复执行的过程(调用自身) 2)有跳出反复执行过程的条件(递归出口)递归例子:(1)阶乘 n! = n * (n-1) * (n-2) * ...* 1(n>0)//阶乘int recursive(int i){ in....
分类:编程语言   时间:2015-11-08 14:19:43    阅读次数:193
《C++程序设计教程——给予Visual Studio 2008》读书笔记
double *p1; //p1为指向double型的指针变量POINT *p2; //p2为指向POINT型(点类型)的指针变量int (*p3)[6]; //p3为指向一维数组的指针变量,该一维数组含有6个int型的元素int (*p4)(); //p4为指向函数的指针变量,...
分类:编程语言   时间:2015-11-07 23:23:37    阅读次数:325
redis-网络事件模型(scoket)
1、相关宏和函数原型 FD_ZERO(int fd, fd_set* fds) FD_SET(int fd, fd_set* fds) FD_ISSET(int fd, fd_set* fds) FD_CLR(int fd, fd_set* fds) int select(int nfds,...
分类:其他好文   时间:2015-11-07 23:23:02    阅读次数:515
大数的阶乘
首先要确定这个数的阶乘需要开多大的数组,可以用Stirling公式。输入不超过10000的正整数,计算n!的具体值。#include#includeusing namespace std;const int maxn=50000;int main(){ int n,s,k,c; int ...
分类:其他好文   时间:2015-11-07 23:09:09    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!