码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果
循环队列
//// main.cpp// circleQueue//// Created by zhou on 14-6-19.// Copyright (c) 2014年 zhou. All rights reserved.//#define Max 50typedef struct ...
分类:其他好文   时间:2014-06-28 18:54:47    阅读次数:171
rtyeer
/* Expands 'hmap', if necessary, to optimize the performance of searches. */voidhmap_expand(struct hmap *hmap){ size_t new_mask = calc_mask(hmap->n...
分类:其他好文   时间:2014-06-21 08:27:00    阅读次数:223
HDU 1010
经典搜索 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=10; 6 7 int step[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m,t;10 struct {11 ...
分类:其他好文   时间:2014-06-21 07:12:00    阅读次数:218
函数类型
在C和C++中,函数也是一种类型,原因是可以指向函数的指针。这个指针指向了内存中函数的入口处。(多么有趣的现象!因为这一下子把程序和进程的概念似乎又引入进来了!)void (*fPtr)(int );//这是一个变量的定义,指针变量由于函数是一种类型,我也就可以使用typedef关键字:对于函数:v...
分类:其他好文   时间:2014-06-21 06:25:52    阅读次数:182
类的构造及初始化效率对比
基础数据结构: struct A { int a; int b; int c; int d; int e; int f; int g; };初始化次数:const int MAX_L...
分类:其他好文   时间:2014-06-21 00:17:14    阅读次数:166
明解C语言,练习13-3,从文件中读入个人信息,按身高排序后显示
#include #define NUMBER 6#define F_PATH "D:\\C_C++\\ec13-3\\hw.dat"typedef struct { char name[20]; int height; float weight;} student;void swap(studen...
分类:编程语言   时间:2014-06-21 00:08:26    阅读次数:321
fl2440 Nand MTD 分区表
static struct mtd_partition smdk_default_nand_part[] = {[0] = { .name = "Boot", .size = 0x00100000, ....
分类:其他好文   时间:2014-06-20 16:47:10    阅读次数:156
HDU 1171
母函数简单题 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=130000; 6 int c1[MAX],c2[MAX]; 7 8 struct { 9 int val,num;10 }thing[55];...
分类:其他好文   时间:2014-06-20 16:07:13    阅读次数:164
链表实现多项式求和求积
#include #include #includeusing namespace std;struct Node { double coef; int expn; Node *next;};void CreatPolynomial(Node *&head, int n) ...
分类:其他好文   时间:2014-06-20 14:17:26    阅读次数:285
HDU 1240
1 #include 2 #include 3 using namespace std; 4 5 const int MAX=13; 6 7 char maze[MAX][MAX][MAX]; 8 9 struct {10 int i,j,k;11 }beg,des,que[11...
分类:其他好文   时间:2014-06-20 14:04:37    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!