Answer the question
In order to leave comments, you need to log in
How to interact with a pointer in a struct through a pointer?
There is a stack implementation based on a singly linked list:
struct ListElement {
char element;
ListElement* nextaddres;
};
class MyList {
ListElement *head; //Верхушка стека
bool Empty()
}
bool MyList::Empty() {
return *head->nextaddres == nullptr ? true: false;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question