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
#define _XOPEN_SOURCE 500 | |
#define _POSIX_C_SOURCE 200809L | |
#include "heap.h" | |
#include "hash.h" | |
#include "lista.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> |
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
#define _XOPEN_SOURCE 500 | |
#define _POSIX_C_SOURCE 200809L | |
#include "heap.h" | |
#include "hash.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> |
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
#define _XOPEN_SOURCE 500 | |
#include "heap.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <stddef.h> | |
#define CAPACIDAD_IN 40 |
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
#define _XOPEN_SOURCE 500 | |
#include "abb.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "lista.h" | |
#include "pila.h" | |
/* ***************************************************************** |
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 <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
double* obtener_promedio_movil(int* arreglo, size_t n, size_t k){ | |
double* arreglo_aux = malloc(sizeof(double)*(n+1)); | |
for(int i=0;i<n;i++){ //entro al arreglo | |
int cantidad=0; | |
double suma=0; |
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
#define _XOPEN_SOURCE 500 | |
#include "hash.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define TAM_INICIAL 101 | |
/* ***************************************************************** | |
* ESTRUCTURA DEL HASH | |
* *****************************************************************/ |
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 <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
double* obtener_promedio_movil(int* arreglo, size_t n, size_t k){ | |
double* arreglo_aux = malloc(sizeof(double)*(n)); | |
int pos_aux= -1-k; // para que luego empieze a restar los quedan sobrando | |
int pos=k+1; | |
double cantidad; |
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
#define _POSIX_C_SOURCE 200809L | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define NOMBRE_ARCHIVO "lorem.txt" | |
int fixcol(char* nom_archivo, size_t cant_bytes){ | |
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
#define _XOPEN_SOURCE 500 | |
#include "hash.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define TAM_INICIAL 101 | |
/* ***************************************************************** | |
* ESTRUCTURA DEL HASH |
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 "hash.h" | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
//estructuras | |
enum estado{ | |
vacio,/0 |