Skip to content

Matheus Bratfisch Posts

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 9.04, reducing your boot time.

Hey, searching around the internet, i find some ways to decrease the boot time. All of them were for older versions, tham i decided to…

Continue reading Ubuntu 9.04, reducing your boot time.

List, Data Structure

Good afternoon, Like I said before I'm having Data Structure class. And today I will introduce you the List concept. A linear data structure. There…

Continue reading List, Data Structure

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

Ubuntu 9.04, bootChart.

Hello, I decided to stay in computer a little more, and have a test with this fresh installation of Ubuntu 9.04. Some people say that…

Continue reading Ubuntu 9.04, bootChart.

Ubuntu 9.04, up and running.

Hello guys, In the last thursday the Ubuntu 9.04 was released. I decided to try the 64 bits version, I didn`t used EXT4 (but I…

Continue reading Ubuntu 9.04, up and running.

Conversion table – Computer Organization (INE5411)

I'm cursing Computer Organization given by Luiz C. V. Santos. The book used in this class is "Computer Organization and Design: The hardware/software interface", and I have the portuguese book so I created a conversion table from the english book to the portuguese.

Too see the conversion see the complete post.

Continue reading Conversion table – Computer Organization (INE5411)

Queue, Data Structure

Good Night, What is Queue? Queue is a data structure used a lot in computers, and it is based on the principle FIFO (First in,…

Continue reading Queue, Data Structure