Skip to content

Category: Aprendendo

Stack, using pointer, Data Structure.

This is a implementation of a Stack using pointers. The basic thing is the structure of tPilha is

[code lang="C"]
constant MAXPILHA = 100;
tipo tPilha {
inteiro dados[MAXPILHA];
inteiro *topo;
}; [/code]

Where *topo is a pointer to the first element in the stack. When you`re going to add a new one you verify if the stack is full, if it ins`t you put the data in a position in the stack and change the *topo. When removing, you decrement one in pointer *topo. Then it will reference the element that was there before.

(I had an enunciation but it was too big to translate)

stack with pointers implementation!

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it
Continue reading Stack, using pointer, Data Structure.

Netbeans 6.5.1, Line-spacing

Hello, I was using NetBeans in Ubuntu 9.04 when i started a new project and I realized that the line-spacing is so fucking bigger. To…

Continue reading Netbeans 6.5.1, Line-spacing

Ubuntu 9.04, 64 Bits with Java.

Hi, I was trying to access my back account but I could not due to problems with the java. Talking with a friend, he told…

Continue reading Ubuntu 9.04, 64 Bits with Java.

Ubuntu, VirtualBox 2.2 and USB

Hello, Now, with this new version of ubuntu, i will post alot about it while I'm trying configurations. I don't want to teach how to…

Continue reading Ubuntu, VirtualBox 2.2 and USB

Data Structure, C

Hello, This semester I have data structure class, my professor Aldo Von Wangenheim, decided to use C in the first part of the class, and…

Continue reading Data Structure, C

Telis, learning how to program

Today I will introduce you a programming language that the professor Fernando (Melga) uses in his class. Telis is a programming language like many others,…

Continue reading Telis, learning how to program