c++创建栈及部分函数实现
摘要:
1 // 栈的创建.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include<iostream> 6 using namespace std; 7 const int size=100; //初始空间分配 8 const int increase=10; //增补空间量 9 10 typedef struct stack{ 11 int *elem; //存储数据元素的数组12 int top; //栈顶指针13 }; //建立一个栈的结构体14 15 //构建一个空栈s1... 阅读全文
posted @ 2013-05-08 13:57 之足常乐 阅读(701) 评论(0) 推荐(0)
浙公网安备 33010602011771号