#include "Reverse.h" #include "Lstack.h" #include "Astack.h" int main() { Array_stack s1(500); Link_stack s2; // but not s2(); Array_stack s3; Link_stack s4; s1.reverse (20); s2.reverse (20); s3.reverse (20); //reverse knows about integers and chars s4.reverse (20); //as well as arrays and linked lists, member funct. return 0; } /* /////////////Code Warrior /////////// 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 t s r q p o n m l k j i h g f e d c b a t s r q p o n m l k j i h g f e d c b a /////////////g++ ////////////// Astack.h:23: warning: `class Array_stack' has virtual functions but non-virtual destructor Astack.h:23: warning: `class Array_stack' has virtual functions but non-virtual destructor 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 t s r q p o n m l k j i h g f e d c b a t s r q p o n m l k j i h g f e d c b a */