C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Data Structures and Algorithm Analysis in C++ sample source codes
TestStackAr.cpp - Test program for (array-based) stacks
TestStackAr.cpp - Test program for (array-based) stacks #include <iostream.h> #include "StackAr.h" int main( ) { Stack<int> s; for( int i = 0; i < 10; i++ ) s.push( i ); while( !s.isEmpty( ) ) cout << s.topAndPop( ) << endl; return 0; }
Privacy Policy
|
Link to Us
|
Links