码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
链表快速排序
链表快速排序 大致思想是通过一个指针数组转化为常规数组快速排序,最后再重新梳理链表。 #include #include using namespace std;typedef struct NODE{ int data; NODE* next; NODE(int _data) : data(_da...
分类:其他好文   时间:2014-06-21 10:01:47    阅读次数:210
数据结构--内排序
直接插入排序#include typedef int Keytype;typedef struct{ Keytype key; int data;}RecType;void InsertSort(RecType R[],int n){ int i; int j; RecType temp; f...
分类:其他好文   时间:2014-06-21 09:52:18    阅读次数:223
Java编程:获取用户是否输入回车符
/** * 验证用户是否有输入回车键,并给出相应提示 * @param flag * @return */import java.io.BufferedReader; import java.io.InputStreamReader;public class Test { public stat.....
分类:编程语言   时间:2014-06-21 09:24:01    阅读次数:245
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
类的构造及初始化效率对比
基础数据结构: 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
链表实现多项式求和求积
#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
迷上了代码!