-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
29 lines (23 loc) · 654 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "hash_table.h"
#include "etapa2.h"
int main()
{
char palavra[50];
/* char ficheiro[20]; */
DICIONARIO dic = criar_dicionario("dicio.txt");
printf("palavra a consultar:\n");
fgets(palavra, 50, stdin);
palavra[strlen(palavra)-1] = '\0';
if(palavra_existe(dic,palavra))
printf("A palavra %s está no dicionário.\n", palavra);
else
printf("A palavra %s não está no dicionário.\n", palavra);
/* Testar tarefa 4 */
/* printf("Introduza o nome do ficheiro onde se encontra a sopa de letras.\n"); */
/* scanf("%s",ficheiro); */
/* jogar(ficheiro,dic); */
return 0;
}