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);
}
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando e usando o Dconf Editor, o "regedit" para Linux
Como instalar o navegador TOR no seu Linux
Instalando Zoom Client no Ubuntu 24.04 LTS
Encriptografa... as particoes com LUKS, o que poderia dar errado? (0)
Qual a relevancia dos valores de bogomips com os Mhz e Ghz[DUVIDA] (2)