How can I create this linked list with stack in C? -


i can create linked list. not managed create stack it. (stack cannot more 5, , can empty shown in link). how can it? (c language c++ functions new int allowed)

the structure like:

struct linkedstack {   int elements[5];   int top;   struct linkedstack *next; }; 

then manage stack top (equals 0 @ beginning)...


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -