Enviado em 04/06/2021 - 14:45h
Boa tarde pessoal, tudo bem ?#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct item
{
int x;
char str[4];
};
struct hashtable
{
int flag;
int tamanho;
struct item *item;
};
struct hashtable *hashtable;
//prototipos ------------------------------------------
void inicia_v(int tam_hash);
int hashcode(int x, int tam_hash);
//void inserir(char *alfanum, int tam_hash);
//main ------------------------------------------
int main()
{
//int tam_hash = 5;
inicia_v(5);
return 0;
}
//funções ------------------------------------------
void inicia_v(int tam_hash) {
int i;
for ( i = 0; i < tam_hash; i++)
{
hashtable[i].flag = 0;
hashtable[i].tamanho = 0;
hashtable[i].item = NULL;
}
}
int hashcode(int x, int tam_hash)
{
return (x) % (tam_hash);
}
Atualizando o Passado: Linux no Lenovo G460 em 2025
aaPanel - Um Painel de Hospedagem Gratuito e Poderoso
O macete do Warsaw no Linux Mint e cia
Visualizar arquivos em formato markdown (ex.: README.md) pelo terminal
Dando - teoricamente - um gás no Gnome-Shell do Arch Linux
Como instalar o Google Cloud CLI no Ubuntu/Debian
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Jogos baixados na Central de Aplicativos mas que não abrem (1)
debian com wayland, configuracao de teclado. Mudou Tudo! [RESOLVIDO] (1)
Iinstalar o Scanner Kodak i940 no Linux Mint 19/20? (3)
Pastas da raiz foram para a área de trabalho [RESOLVIDO] (11)