Could someone help me debug this. I am stumped.
C:\Borland\BCC55\src>bcc32 stackh.hCode:// Stack of customers prblm 3 pg 417 c++ primer plus #ifndef _STACKH_H_ #define _STACKH_H_ struct customer { char fullname[35]; double payment; }; typedef customer Item; //error here class Stack // error here { private: enum {MAX=10}; Item items[MAX]; int top; public: Stack(); bool isempty() const; bool isfull() const; // push returns false if stack is full, else true bool push(const Item & item); // add item to stack // pop returns false if stack is empty, true otherwise bool pop(Item & item); }; #endif
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
stackh.h:
Error E2257 stackh.h 11: , expected
Error E2141 stackh.h 13: Declaration syntax error
*** 2 errors in Compile ***