随笔 - 58  文章 - 1  评论 - 5  阅读 - 10万
08 2013 档案
输入一个年输出其天干地支纪年法的表达式
摘要:#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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑
HTTP工作原理与消息结构
摘要:HTTP工作原理 HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。 Web服务器有:Apache服务器,IIS服务器(Internet Information Services)等。 Web服务器根据接收到的请求后,向客户端发送 阅读全文
posted @ 2013-08-10 15:54 lie隼 阅读(348) 评论(0) 推荐(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) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示