摘要:
// 栈.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include "malloc.h"
#define maxSize 100 typedef struct { int data[maxSize]; int top;
}SqStack;
void push(SqStack &st,int x)
{ if(st.top==maxSize-1) return; st.top++; st.data[st.top]=x;
}
void pop(SqStack &st,int &x)
{ i 阅读全文
posted @ 2013-09-26 23:32
小竹zz
阅读(146)
评论(0)
推荐(0)
摘要:
// 栈.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include "malloc.h"
#define maxSize 100 typedef struct { int data[maxSize]; int top;
}SqStack;
void push(SqStack &st,int x)
{ if(st.top==maxSize-1) return; st.top++; st.data[st.top]=x;
}
void pop(SqStack &st,int &x)
{ i 阅读全文
posted @ 2013-09-26 23:32
小竹zz
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号