- 博客(7)
- 资源 (3)
- 收藏
- 关注
转载 结构体定义 typedef struct 用法详解和用法小结
转自 http://blog.sina.com.cn/s/blog_4fdabc820100fsxu.html 紫心玲儿的博客typedef是类型定义的意思。typedef struct 是为了使用这个结构体方便。具体区别在于:若struct node {}这样来定义结构体的话。在申请node 的变量时,需要这样写,struct node n;若用typedef,可
2015-03-08 16:05:17 298
原创 数据结构之线性表的基本操作
#include#include#include#define ERROR 0#define TRUE 1#define OK 1#define FALSE 0#define FEASIBLE -1#define OVERFLOW -2#define LIST_INIT_SIZE 100#define LISTINCREMENT 10ty
2013-11-07 21:54:04 107
原创 数据结构之三元组的操作
#include #include #include #define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -2#define INFEASIBLE -1#define ElemType inttypedef int Status;typedef
2013-11-07 10:49:37 655
原创 数据结构之复数的四则运算
#include #include typedef struct Complex {float real;float image;}Complex;Complex InitComplex(float a,float b){Complex C;C.real=a;C.image=b;return C;}//创建复数Complex Add(Comp
2013-10-17 23:56:33 3410 1
原创 数据结构之 复数的四则运算
#include#includetypedef struct Complex{ float real; float image;}Complex;void CreatComplex(Complex& c,float a,float b);void AddComplex(Complex& sum,Complex c1,Complex c2 );vo
2013-09-13 17:48:36 1264
原创 1562 Guess the number
Guess the numberTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2101 Accepted Submission(s): 1591Problem DescriptionHappy new yea
2013-08-02 09:22:39 364
原创 杭电2015偶数求和
偶数求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35002 Accepted Submission(s): 15217Problem Description有一个长度为n(nInpu
2013-07-26 17:08:20 430
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人