Код: Выделить всё
#include
using namespace std;
class mystack
{
int top;
int arr[5];
int sizeofstack;
public:
mystack(int j = 5)
{
arr[j];
top = -1;
// cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78689218/i-was-trying-to-create-class-mystack-which-would-work-like-a-stack-datatype-but[/url]