Stack met array (3 van 4) template <typename T> void StackWithArray<T>::push(const T& t) { if (full())
{"Image DocumentName": "Stack met array (3 van 4)template <typename T> void StackWithArray<T>::push(const T& t) { if (full())", "Image ImageDescription": "std::cerr << Can t push on an full stack << std::endl; else. a[i++] = t; } template <typename T> void StackWithArray<T>::pop() { if (empty()) std::cerr << Can t pop an empty stack << std::endl; --i; template <typename T> const T& StackWithArray<T>::top() const { if (empty()) { std::cerr << Can t top an empty stack << std::endl; std::exit(-1); // no valid return. return a[i - 1]; 37.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}