输入一个年输出其天干地支纪年法的表达式
摘要:#include #include using namespace std;char *day_name1(int x){ static char *name[20]={"Gui","Jia", "Yi", "Bing", "Ding", "Wu", "Ji", "Geng", "Xin", "Re...
阅读全文
posted @
2013-08-24 11:23
lie隼
阅读(439)
推荐(0) 编辑
队列的链式存储及其基本运算
摘要:#include #include #define QueueSize 10typedef struct Qnode //链队列的定义{ char data; struct Qnode *next;}Qtype; //链队中节点类型typedef s...
阅读全文
posted @
2013-08-15 15:42
lie隼
阅读(363)
推荐(0) 编辑
队列的顺序存储及其基本操作
摘要:#include #include #define QueueSize 10typedef struct{ char data [QueueSize]; int front,rear;}SqQueue;void InitQueue(SqQueue &qu) //初始化队列{ qu...
阅读全文
posted @
2013-08-15 09:57
lie隼
阅读(387)
推荐(0) 编辑
栈的顺序存储及其基本操作
摘要:#include #include #define M 10typedef struct //定义一个顺序栈{ char data[M]; int top;}SqStack;void InitStack(SqStack &st)//创建一个栈{ st.top=-1;}int P...
阅读全文
posted @
2013-08-14 11:13
lie隼
阅读(345)
推荐(0) 编辑
栈的链式存储及其基本运算
摘要:#include #include #define M 10typedef struct stnode{ char data; struct stnode *next;}LinkStack;void InitStack(LinkStack *&ls) //初始化栈{ ls=NUL...
阅读全文
posted @
2013-08-14 10:56
lie隼
阅读(271)
推荐(0) 编辑
HTTP工作原理与消息结构
摘要:HTTP工作原理 HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。 Web服务器有:Apache服务器,IIS服务器(Internet Information Services)等。 Web服务器根据接收到的请求后,向客户端发送
阅读全文
posted @
2013-08-10 15:54
lie隼
阅读(348)
推荐(0) 编辑
整数各位数分离(C语言代码)
摘要:#includeint main(){ int m=1,i=0; long int n; int a[16]; printf("Input an integer: "); scanf("%ld",&n); if(n=0;i--) printf("%d ",a[i]); printf("\n"); ...
阅读全文
posted @
2013-08-10 11:10
lie隼
阅读(1521)
推荐(0) 编辑
链表的逆置,归并,拆分以及其他函数集合
摘要:#include #include struct node{ int data; struct node *next;};struct node * creat1(int n)//逆序建立链表{ struct node *head,*p; int i; head=(st...
阅读全文
posted @
2013-08-10 11:07
lie隼
阅读(456)
推荐(0) 编辑