This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Vamos admitir um cenário onde haja duas filas: de entrada e saída. Por exemplo | |
um banco movimentado onde vc pega a senha para a fila para ser atendido, depois | |
é atendido e depois entra em outra fila para sair do banco (muito movimentado | |
com apenas 1 porta rotatória) | |
Neste cenário vc tem 3 momentos: | |
1 - está na fila de entrada | |
2 - está sendo atendido (portanto fora das 2 filas) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define T 5 | |
struct ST_Fila { | |
int | |
n, | |
ini; | |
float | |
vet[T]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
3)Faça um programa para auxiliar no processo de eleição do prefeito de um | |
determinado município. | |
Crie uma estrutura de dados chamada CANDIDATO com os seguintes membros: | |
nome char[30], partido[20], slogan[100] | |
int idade, numero_cand, votos | |
O programa deve, inicialmente, solicitar que o usuário faça o cadastro de 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
(c) 2010~2013 Alessandro Ramos dos Santos | |
[email protected] | |
This file implements selection, bubble, insertion, quick and heap sort algorythms in Array prototype. | |
It adds a swap() method for use with these algorythms. | |
Hope you like it. :) | |
Forgive my bad English. :( |