2015年9月29日

div等块级元素居中的两种方法

摘要: 以下两种方法是针对宽度确定的块级元素而言的1.设置块级元素CSS属性为:margin: 0 auto;即左右margin设置为auto。2.设置块级元素的display为inline(此时要求块级元素包含内容,否则由于内联元素的高度设置不起作用,相当于高度为零,块级元素就无法被看到)或者inline... 阅读全文

posted @ 2015-09-29 19:58 川川的小铁柱 阅读(302) 评论(0) 推荐(0)

2015年9月23日

队列的数组实现

摘要: 声明 curosr_queue.h: 1 #ifndef CURSOR_QUEUE_H_INCLUDED 2 #define CURSOR_QUEUE_H_INCLUDED 3 struct QueueRecord; 4 typedef struct QueueRecord *Queue; 5 6... 阅读全文

posted @ 2015-09-23 14:09 川川的小铁柱 阅读(87) 评论(0) 推荐(0)

链表的数组实现

摘要: 声明 cursorLinkedList: 1 #ifndef CURSORLINKEDLIST_H_INCLUDED 2 #define CURSORLINKEDLIST_H_INCLUDED 3 typedef int PtrToNode; 4 typedef PtrToNode Position... 阅读全文

posted @ 2015-09-23 11:46 川川的小铁柱 阅读(184) 评论(0) 推荐(0)

栈的数组实现

摘要: 声明 cursor_stack.h: 1 #ifndef CURSOR_STACK_H_INCLUDED 2 #define CURSOR_STACK_H_INCLUDED 3 struct StackRecord; 4 typedef struct StackRecord *Stack; 5 6... 阅读全文

posted @ 2015-09-23 11:38 川川的小铁柱 阅读(120) 评论(0) 推荐(0)

栈的链表实现

摘要: 声明 stack.h: 1 #ifndef STACK_H_INCLUDED 2 #define STACK_H_INCLUDED 3 struct Node; 4 typedef struct Node *PtrToNode; 5 typedef PtrToNode Stack; 6 7 int... 阅读全文

posted @ 2015-09-23 11:27 川川的小铁柱 阅读(135) 评论(0) 推荐(0)

队列的链表实现

摘要: queue.h: 1 #ifndef QUEUE_H_INCLUDED 2 #define QUEUE_H_INCLUDED 3 struct Node; 4 typedef struct Node QNode; 5 struct Queue; 6 typedef struct Queue *Ptr... 阅读全文

posted @ 2015-09-23 11:20 川川的小铁柱 阅读(148) 评论(0) 推荐(0)

2015年9月18日

链表实现多项式加法

摘要: 头文件polynom.h: 1 #ifndef POLYNOM_H_INCLUDED 2 #define POLYNOM_H_INCLUDED 3 4 struct Node; 5 typedef struct Node *PtrToNode; 6 typedef PtrToNode Po... 阅读全文

posted @ 2015-09-18 17:49 川川的小铁柱 阅读(213) 评论(0) 推荐(0)

2015年9月17日

链表

摘要: 链表的声明头文件: 1 #ifndef _List_h 2 3 struct Node; 4 typedef struct Node *PtrToNode; 5 typedef PtrToNode List; 6 typedef PtrToNode Position; 7 8 List Make... 阅读全文

posted @ 2015-09-17 10:58 川川的小铁柱 阅读(109) 评论(0) 推荐(0)

导航