Skip to content

Stack, Data Structure.

Good Night,

What is Stack? Stack is a data structure of abstract data used a lot in computers, and it is based on the principle LIFO (Last in, first out). It has 2 basic functions, push and pop. It is simple right?

The professor told us to solve this:

* Implement all operations about stack.
* Implement a program that use your stack. The program must have a menu with: pop, push, clean, show stack, exit. Use switch.
* When the program show each element from stack it must show the position of the stack.
* The stack must have max size of 30. As a constant named MAXPILHA
* The stack is referenced by a global reference.

Stack, first implementation.

Regards,
Matheus

PS: I start translating “all” old posts. Maybe this old ones, don’t have all stuffs translated (like attachments in this one)

Published inCEstrutura de Dados

1,234 Comments

  1. Hi, Neat post. There’s a problem with your site in internet explorer, would check this? IE still is the market leader and a big portion of people will miss your fantastic writing because of this problem.

  2. During free spins, each wild that hits collects the values from all money symbols in view. The fish are the money symbols, and each can have a value of 2x to 1,000x the bet. Wilds are collected, too. Every fourth wild symbol collected retriggers the feature, awarding +10 more free spins and a multiplier for money symbol collection of x2 for the first retrigger, x3 for the second retrigger, and x10 for the third retrigger. Retriggered spins are played after the current batch of free spins ends, and the multiplier applies to the retriggered spins. Although it may seem that fishing and slots have nothing in common, the two activities get along quite well. Fishin’ Frenzy showed that fishing-themed releases can be exciting and have solid win potential. Many slot games online offer players the chance to cast out a fishing line without getting their hands dirty. Big Bass Bonanza is a proposal you don’t want to miss out on.
    https://microscan.co.ke/?p=392173
    Animated logos are more eye-catching and engaging than static ones. You can incorporate your animated logo in your marketing materials, such as email newsletters, social media graphics, website banners, video content and more. They grab attention and enhance brand memorability. Try our AI logo animation maker to create an animated version of your logo today. Add frames, scrub, playback, repeat. Animaker is a free online animation maker that lets you create professional animation. ‍LottieFiles is an industry-standard animation app that pioneered the use of JSON files for lightweight, fast-loading website animations — so you’ll notice that many other apps have options for exporting animations as “Lottie files.” It can integrate with several design apps and platforms like Webflow, Adobe After Effects, and Figma, so it’s widely compatible with anything you use.

Leave a Reply

Your email address will not be published. Required fields are marked *