摘要:
//链表做队列/* assume a header */struct Node;struct Queue;typedef struct Node * PtrToNode;typedef struct Queue * PtrToQ;struct Node{ ElementType ele; ... 阅读全文
摘要:
#include#includestruct Node;typedef struct Node *PtrToDStack;struct Node{ int top1,top2; int Capacity; int *Array;};PtrToDStackCreateStack( ... 阅读全文
摘要:
int main(){ int MaxSize = 100,i,j; char tmp[10]; PtrToStack s; s = CreateStack(MaxSize); while( scanf("%s",tmp) != EOF ) { in... 阅读全文
摘要:
二维数组arr[][],数组名加1,指向第二个大元素arr[0]+1在当前行向后移一位一维数组int arr[]一个int虽是两个字节,但是arr+1表示后一个元素的地址 阅读全文