码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
hdu1598--结题报告
题解:对于输入的边,我们首先按照速度从大到小排序,然后对于每一次询问,st   end 两个城市,我们暴力枚举, for(int i = 0; i 上马: //187MS 300K #include #include using namespace std; #define MAX 205 #define INF 1<<30 int N,M,Q; struct Edge { ...
分类:其他好文   时间:2014-08-01 10:53:31    阅读次数:204
Enum使用
public enum DiscountType { [Description("001")] ComboDiscount, [Description("002")] AutoDiscount, [Description("003")] ShippingPromotion, [Description...
分类:其他好文   时间:2014-08-01 10:38:51    阅读次数:167
POJ 3348
水题。不过,题意。。呵呵了。。围一个凸包,求出面积,然后除以50就可以了。#include #include #include #include using namespace std;const int MAXN=10500;struct point { int x,y;}p[MAXN];int ...
分类:其他好文   时间:2014-07-31 23:47:30    阅读次数:328
[leetcode]Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi...
分类:其他好文   时间:2014-07-31 23:25:40    阅读次数:292
java枚举的使用
定义枚举 public enum YesOrNo { YES("是") , NO("否") ; private String text ; private int code ; YesOrNo(){ this.text = this.name() ; this.code = this.ordinal() ; } YesOrNo(String ...
分类:编程语言   时间:2014-07-31 21:03:31    阅读次数:206
UVa409_Excuses, Excuses!(小白书字符串专题)
解题报告 字典树爆。 #include #include #include using namespace std; int k,e,num[100],cnt; struct node { int v; node *next[26]; }; node *newnode() { node *p=new node; p->v=0; int i; ...
分类:其他好文   时间:2014-07-31 20:46:07    阅读次数:216
swift 类和结构体
1:类和结构体定义类和结构体分别通过关键字class 和struct定义。swift的编码风格是类class和结构体struct名字使用大写字母开头的匈牙利表示法,相反的。类的方法和属性则用小写字母开头的匈牙利表示法。结构体总是通过被复制而进行代码传递的。struct SForm{ var i...
分类:其他好文   时间:2014-07-31 20:10:07    阅读次数:228
(转)C# Enum,Int,String的互相转换 枚举转换
Enum为枚举提供基类,其基础类型可以是除 Char 外的任何整型。如果没有显式声明基础类型,则使用 Int32。编程语言通常提供语法来声明由一组已命名的常数和它们的值组成的枚举。注意:枚举类型的基类型是除 Char 外的任何整型,所以枚举类型的值是整型值。Enum 提供一些实用的静态方法:(1)比...
分类:其他好文   时间:2014-07-31 19:59:37    阅读次数:218
中缀表达式转换成后缀表达式
/* solution of convertion of infix to postfix */#include #include #include struct StackRecord{ char Operator[32]; int TopIndex; int Capacity;...
分类:其他好文   时间:2014-07-31 19:44:42    阅读次数:200
POJ 2007
直接求凸包,输出即可。#include #include #include #include #include using namespace std;const int MAXN=100;int n,l;int st[MAXN],stop,cnt;int ans[MAXN];struct poin...
分类:其他好文   时间:2014-07-31 16:52:46    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!