I can not figure out how to check the stack for emptiness: ...
struct List { int x; //информационный элемент List *Next; }; bool Empty(List *&p) { if (p == NULL) { return true; } else { return false; } } ...
I can not figure out how to check the stack for emptiness: ...
struct List { int x; //информационный элемент List *Next; }; bool Empty(List *&p) { if (p == NULL) { return true; } else { return false; } } ...
Source: https://ru.stackoverflow.com/questions/831880/
All Articles