From 6d4e962aa79c9fb09a69e9e8aedb07111ff40432 Mon Sep 17 00:00:00 2001 From: Fernando Erd <fce15@inf.ufpr.br> Date: Fri, 11 Dec 2015 23:32:13 -0200 Subject: [PATCH] Coments --- "Arquivos/Fun\303\247\303\265es.h" | 2 +- Arquivos/Pesquisa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git "a/Arquivos/Fun\303\247\303\265es.h" "b/Arquivos/Fun\303\247\303\265es.h" index 7185223..26a9d98 100644 --- "a/Arquivos/Fun\303\247\303\265es.h" +++ "b/Arquivos/Fun\303\247\303\265es.h" @@ -1,4 +1,4 @@ -//sempre colocar declaração da função aqui +//Cabeçalhos das Funções void LerDados (int *Vetor); void GeraVetor (int *Vetor); void ImprimeVetor (int *Vetor); diff --git a/Arquivos/Pesquisa.c b/Arquivos/Pesquisa.c index c6f88e8..4165f2c 100644 --- a/Arquivos/Pesquisa.c +++ b/Arquivos/Pesquisa.c @@ -18,7 +18,7 @@ int PesquisaBinaria (int *Vetor, int Elem) { if (Elem == Vetor [meio]) return (meio); else - return -1; //return = -1 pq o se o elemento estiver na primeira posição irá retornar 0 (posição que ele se encontra no vetor) + return -1; //return -1 pq o se o elemento estiver na primeira posição irá retornar 0 (posição que ele se encontra no vetor) } //Algoritmo de Pesquisa Sequencial -- GitLab