+ 4

Is there some way we could use one interface file for the stack ADT, stack.h, that could be used by multiple implementations of

Is there some way we could use one interface file for the stack ADT, stack.h, that could be used by multiple implementations of stack?

28th Aug 2019, 5:49 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Answer
+ 1
There are some things I don't understand in your question. 1. What do mean with interface file? 2. What do you mean with stack, the data type or the container? And what are those implementations you're talking about? Btw. if you want to use stack as container I'd recommend to use C++ and its STL: http://www.cplusplus.com/reference/stack/stack/
5th Sep 2019, 8:34 PM
Aaron Eberhardt
Aaron Eberhardt - avatar