码迷,mamicode.com
首页 >  
搜索关键字:struct dpif_class    ( 18974个结果
C语言关键字
注:该内容整理自以下链接。http://www.cnblogs.com/yezhenhan/archive/2011/10/16/2214420.html由ANSI标准定义的C语言关键字共32个: auto double int struct break else long switch cas.....
分类:编程语言   时间:2014-07-16 19:30:35    阅读次数:258
算法设计分析(44页)
分别以两个(带头结点的)循环有序链表表示集合A和B,完成这两个集合并集的操作:代码如下:#includetypedef struct LNode { int data ; struct LNode *next ;}LNode , *LinkList ;void union_OL(L...
分类:其他好文   时间:2014-07-16 19:26:37    阅读次数:211
【HDOJ】2267 How Many People Can Survive
BFS。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 #define MAXN 305 8 9 typedef struct node_st {10 int x, y;11 ...
分类:其他好文   时间:2014-07-15 23:05:28    阅读次数:289
c语言学习之结构篇代码演示样例-输入n个同学的姓名,数学英语成绩,依照平均分从低到高排序并输出
#includevoid main(){const int count = 5;//定义数量struct student{char name[80];float math,eng;float aver;}stu[count],temp;//输入for (int i = 0; i stu[sub].a...
分类:编程语言   时间:2014-07-14 21:23:30    阅读次数:247
内核链表的应用
本文构建了一个双向循环的内核链表,然后对链表进行遍历并打印了数据,最后释放了链表节点。使用到的数据结构和链表操作函数如下: struct list_head 内核提供的双向循环链表节点的结构体 LIST_HEAD(name) 该宏定义并初始化一个名为name的s...
分类:其他好文   时间:2014-07-14 14:44:29    阅读次数:190
列出一个目录中的所有文件
file/ls1.c 1 #include "apue.h" 2 #include 3 int 4 main(int argc, char *argv[]) 5 { 6 DIR *dp; 7 struct dirent *dirp; 8 if (...
分类:其他好文   时间:2014-07-14 14:20:31    阅读次数:186
typedef,结构体,共用体,联合体
typedef的用途: 封装数据类型,方便移植 简化函数指针的定义 结构体:不同类的型元素汇聚。 (1)、在声明类型的同时定义变量: struct 结构体名{    成员列表 } 变量名列表;   (2)、直接定义结构体类型变量 struct {      成员列表 }变量名表列;...
分类:其他好文   时间:2014-07-14 13:17:18    阅读次数:240
最短路 Bellman-Ford(贝尔曼-福特)
#include #include #include using namespace std; #define inf 0x7ffffff struct Edge { int u,v,cost; }edge[2000]; int pre[200];//父亲 int dis[200];//到源点的距离 int n,m,src;//点的个数,边数,源点 bool relax(int...
分类:其他好文   时间:2014-07-14 12:59:28    阅读次数:265
算法分析(54页)
将线性表以带头结点的单链表作存储结构,偶数放前,奇数放后;代码如下:#includetypedef struct LNode { int data ; struct LNode *next ;}LNode , *LinkList ;int main() { LinkList...
分类:其他好文   时间:2014-07-14 10:34:37    阅读次数:189
UVa439
Knight Moves题意:骑士巡游到某位置的最少步数#include #include int s[20][20];int rear, front;int min;char a, c;int b, d;struct{ int x, y; int p;}Susake[300000];v...
分类:其他好文   时间:2014-07-13 20:04:24    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!