?? nohead_linstack.cpp
字號:
#include<iostream.h>
#include<stdlib.h>
const int MaxStackSize=100;
typedef int DataType;
#include"nohead_LinStack.h"
template <class T>
void Order(nohead_LinStack<T>&s)
{
DataType test[]={1,3,5,7,9};
int n=5;
for(int i=0;i<n;i++)
s.Push(test[i]);
while(s.NotEmpty())
cout<<s.Pop()<<" ";
}
void main(void)
{
nohead_LinStack<int> s;
Order(s);
cout<<endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -