码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
结构体
结构体声明结构体定义结构体应用结构体与数组结构体也属于构造类型。结构体比数组更加灵活,可以存放不同类型的变量。结构体是由若干成员组成的,成员既可以是基本数据类型,又可以是构造类型,比如数组。结构体属于自定义数据类型。1.结构体声明:struct 结构体名{类型说明符..
分类:其他好文   时间:2014-07-24 23:47:44    阅读次数:179
单链表操作系列
#include #include typedef int ElemType; //定义结点类型 typedef struct Node { ElemType data; struct Node *next; }LNode,*LinkList; //单链表的建立1,头插法建立单链表,逆序生成 LinkList LinkListCreateH() { LinkList L,p; ...
分类:其他好文   时间:2014-07-24 23:33:03    阅读次数:237
hdu 1698 Just a Hook 基本线段树
使用线段树更新每段区间的奖(1,2,3),最后在统计整段区间的数和,基本线段树,果断1A啊 #include #include using namespace std; #define N 100000 struct node{ int l,r,p; }a[N*4]; int n; void build(int left,int right,int i){ a[i].l=left...
分类:其他好文   时间:2014-07-24 23:26:23    阅读次数:195
iOS开发系列之一 - UIButton 用法小结
// 初始化按钮并设置类型 UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; // 能够定义的UIButton类型有以下6种: // typedef enum { // UIButtonTypeCustom = 0, 自定义风格 // UIButtonTypeR...
分类:移动开发   时间:2014-07-24 23:25:53    阅读次数:241
hdu 4882 ZCC Loves Codefires(贪心)
# include # include # include using namespace std; struct node { int v; int t; }; struct node a[100010]; bool cmp(node a,node b) { return a.v *a.t+(a.v+b.v)*b.t<b.v*b.t+(a.v+b.v)*a.t; }...
分类:其他好文   时间:2014-07-24 23:16:23    阅读次数:268
hdu 4864 Task (贪心)
# include # include # include using namespace std; struct node { int t; int v; int yy; }; struct node a[100010],b[100010]; bool cmp(node a1,node a2) { if(a1.t==a2.t)//先按时间从大到小 return a1.v>a2....
分类:其他好文   时间:2014-07-24 23:10:33    阅读次数:238
设置Windows 8.1屏幕自动旋转代码, Auto-rotate function code
程序代码实现启用或禁用Windows 8.1 Tablet的自动旋转功能 方法一:使用SetDisplayAutoRotationPreferences函数功能 #include /* typedef enum ORIENTATION_PREFERENCE { ORIENTATION_PREFERENCE_NONE = 0x0, ORIENTATI...
分类:Windows程序   时间:2014-07-24 23:07:23    阅读次数:600
hdu 1236 排名
http://acm.hdu.edu.cn/showproblem.php?pid=1236自己写的comp,终于勉强算是掌握sort()了...囧...继续努力~ 1 #include 2 #include 3 #include 4 using namespace std; 5 struct S....
分类:其他好文   时间:2014-07-24 22:22:22    阅读次数:298
Qt_DX
#ifndef MY_FRAME__HH__#define MY_FRAME__HH__#include struct IDirect3D9; struct IDirect3DDevice9; class QD3DWidget : public QWidget { Q_OBJECT pub...
分类:其他好文   时间:2014-07-24 21:53:12    阅读次数:228
【Nginx】epoll事件驱动模块
当某个进程调用epoll_create方法时,linux内核会创建一个eventpoll结构体,这个结构体中有两个成员与epoll的使用方式密切相关。struct eventpoll{ struct rb_root rbr;//红黑树的根结点,这棵树中存储着所有添加到epoll中的事件,也就是这个....
分类:其他好文   时间:2014-07-24 21:22:56    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!