码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
hdu3709
枚举+数位dp注意处理数字为0和1的情况。#include #include using namespace std;#define D(x) const int MAX_DIGIT = 20;long long n;int f[MAX_DIGIT];long long memoize[MAX_DI...
分类:其他好文   时间:2015-02-11 18:00:35    阅读次数:167
OpenCV:Snake方法检测可变形体的轮廓
#include #include #include #include #include #include #include IplImage *image = 0 ; IplImage *image2 = 0 ; using namespace std; int Thresholdness = 141; int ialpha = 20; int ibeta=20; int ig...
分类:其他好文   时间:2015-02-11 16:36:34    阅读次数:259
ASP.NET Web API实践系列07,获取数据, 使用Ninject实现依赖倒置,使用Konockout实现页面元素和视图模型的双向绑定
本篇接着上一篇"ASP.NET Web API实践系列06, 在ASP.NET MVC 4 基础上增加使用ASP.NET WEB API",尝试获取数据。 在Models文件夹下创建Comment类: namespace MvcApplication5.Models { public class C...
分类:Windows程序   时间:2015-02-11 14:22:53    阅读次数:287
【点分治】poj1741 Tree / poj2114 Boatherds / poj1987 Distance Statistics
三道题都很类似。给出1741的代码#include#include#includeusing namespace std;#define MAXN 10001typedef pair Point;int n,K,ans;int v[MAXN<<1],w[MAXN<<1],first[MAXN],ne...
分类:其他好文   时间:2015-02-11 14:10:11    阅读次数:187
C++之“程序结构”
变量的类型 一、全局变量与局部变量 1、全局变量作用范围:文件作用域。 2、局部变量作用范围:函数作用域、块作用域和函数原型作用域。 二、存储类型 1、auto:默认的局部变量存储类型。 2、register:为提高执行效率,得以直接从寄存器中取出而定义的寄存器变量类型。 3、extern:对于左右模块共用的全局变量。 4、static:为可被下次调用时继续使用的全局静态变...
分类:编程语言   时间:2015-02-11 10:55:36    阅读次数:160
UVA - 12301 - An Angular Puzzle (计算几何~平面三角)
题目地址:点这里 思路:可以先确定A,B的坐标,然后再通过确定向量来硬算出角度。。好像可以推公式做,没推出来╮(╯_╰)╭ AC代码: #include #include #include #include #include using namespace std; const double PI = 4 *...
分类:其他好文   时间:2015-02-11 09:24:25    阅读次数:202
二叉树(简单版)
树是一种非线性结构,树的本质是将一些节点由边连接起来,形成层级的结构,即1:N的关系,下面是手动构建数据之间的关系:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ...
分类:其他好文   时间:2015-02-11 00:31:33    阅读次数:203
BZOJ 1053 反素数
Description对于任何正整数x,其约数的个数记作g(x)。例如g(1)=1、g(6)=4。如果某个正整数x满足:g(x)>g(i) 0 2 #include 3 #include 4 using namespace std; 5 6 typedef long long ll; 7 int ....
分类:其他好文   时间:2015-02-10 23:08:59    阅读次数:185
C# 的两种debug 方法
第一种:需要把调试方法改成debug代码用 #if DEBUG 包裹using System;using System.Collections.Generic;using System.Text;using System.IO;namespace SplitPackage{ public st...
分类:Windows程序   时间:2015-02-10 23:06:44    阅读次数:305
sdagfsadgaf
#include#include#includeusing namespace std;int f[10000010] , maxn , vis[10000010];struct edge{ int u , v ;}e[100010];int m , n , cnt ;void init (i...
分类:其他好文   时间:2015-02-10 22:54:03    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!