![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
example302.cppGo to the documentation of this file.00001 00015 #include <iostream> 00016 #include "StackA.h" 00017 00018 using namespace std; 00019 00020 int main() 00021 { 00022 StackItemType anItem; 00023 Stack aStack; 00024 00025 cin >> anItem; // read an item 00026 aStack.push(anItem); // push it onto stack 00027 00028 return 0; 00029 } // end main |