码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
switch case ,while, do while,enum
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace C_编辑基础{ //枚举的意义就是限定变量的取值范围 enum gender{Male,Female,...
分类:其他好文   时间:2014-07-22 00:32:36    阅读次数:172
链式队列的实现
#include #include typedef int DataType; typedef struct qnode{//链式队列的结点 DataType data;//数据部分 struct qnode *next;//指向下一个结点 }LQNode; typedef struct{ LQNode *front;//队头指针 LQNode *rear;//对尾指针 }...
分类:其他好文   时间:2014-07-22 00:32:35    阅读次数:200
hdu 1305 Immediate Decodability
用G++过了,c++无限WA 就是一水,就是求输入的字符串中是否有一个是其他字符串的子串; 注意这种数据。。。 0000 010 01 9 字符串的长度从大到小; #include #include #include using namespace std; char qq[20005]; struct node{ int q[2]; int w; node...
分类:其他好文   时间:2014-07-22 00:30:36    阅读次数:192
poj 3259Wormholes (spfa最短路径)
#include#include#include#includeusing namespace std;#define N 5505#define M 55000//注意边和点集的数组大小struct edge{ int to,value,next;}edges[M];int heads[N]...
分类:其他好文   时间:2014-07-22 00:20:35    阅读次数:213
linux miscdevice 驱动程序
1  在Linux驱动中把无法归类的五花八门的设备定义为混杂设备(用miscdevice结构体表述)。miscdevice共享一个主设备号MISC_MAJOR(即10),但次设备号不同。 所有的miscdevice设备形成了一个链表,对设备访问时内核根据次设备号查找对应的miscdevice设备,然后调用其file_operations结构中注册的文件操作接口进行操作。 在内核中用struct m...
分类:系统相关   时间:2014-07-22 00:17:34    阅读次数:415
HDU 4462
状态压缩,K#include using namespace std;struct pos{ int x,y;}p[15];int f[55][55],r[15];int n,k;int abs(int a){ if(an)continue; for(int j=abs(i)-l;jn)contin...
分类:其他好文   时间:2014-07-22 00:08:34    阅读次数:232
Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
从sdk3.2.5升级到sdk 7.1中间废弃了很多的方法,还有一些逻辑关系更加严谨了。1,警告:“xoxoxoxo” is deprecated解决办法:查看xoxoxoxo的这个方法的文档,替换掉这个方法即可。2,警告:Declaration of "struct sockaddr" will ...
分类:其他好文   时间:2014-07-21 14:39:27    阅读次数:194
DAG镶嵌模型+原始路径打印
DP矩形镶嵌,打印路径与最长公共子序列相似。 1 #include 2 #include 3 #define doumax(a,b) (a>b?a:b) 4 const int maxn=100; 5 int mat[maxn][maxn],dp[maxn],n; 6 struct node{ 7 ...
分类:其他好文   时间:2014-07-21 14:36:28    阅读次数:387
hdu 1896 Stones(优先队列)
# include # include # include using namespace std; struct node { int pos; int d; int num; friend bool operator n2.d;//仍的距离从小到大 return...
分类:其他好文   时间:2014-07-21 11:43:44    阅读次数:180
hdu 1873看病要排队(优先队列)
# include # include # include using namespace std; struct node { int y; int val; int num; friend bool operatorn2.num;//从小到大 return...
分类:其他好文   时间:2014-07-21 11:36:44    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!