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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <math.h> | |
| #define VAL_MAX 500 | |
| #define SPACING 8 | |
| #define MAX_SHOWING 50 |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <math.h> | |
| #define VAL_MAX 500 | |
| #define SPACING 8 | |
| #define MAX_SHOWING 50 |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| void askUserData(int*); | |
| int *createDinamicArray(int); | |
| void fillArrWRandVar(int*,int); | |
| void showArr(int*,int); |
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 "PilaDina.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // Archivo pilaDina.c | |
| // CREACION DE UNA PILA VAC�A | |
| PILA crearPila ( ){ | |
| PILA S; | |
| S = (PILA)malloc(sizeof(Pila)); | |
| if( S == NULL){ |
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
| // Archivo de colaDina.c | |
| #include "ColaDina.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // CREACION DE UNA COLA VAC�A | |
| COLA crearCola ( ){ | |
| COLA C; | |
| C = (COLA)malloc(sizeof(Cola)); | |
| if( C == NULL){ |
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 "Pilas.h" | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| PILA crearPila() { | |
| PILA tmp = (PILA)malloc(sizeof(pila)); | |
| if (tmp == NULL) { | |
| manejaError(0); | |
| exit(-1); |
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 "Pilas.h" | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| PILA crearPila() { | |
| PILA tmp = (PILA)malloc(sizeof(pila)); | |
| if (tmp == NULL) { | |
| manejaError(0); | |
| exit(-1); |
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 "Pilas.h" | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| PILA crearPila() { | |
| PILA tmp = (PILA)malloc(sizeof(pila)); | |
| if (tmp == NULL) { | |
| manejaError(0); | |
| exit(-1); |
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
| //Cola.c | |
| #include "Cola.h" | |
| void manejaMsg(int op){ | |
| char *msg[] = { | |
| "\nError: Cola llena. ", | |
| "\nError: Cola vacia. ", | |
| "Se ha liberado la cola... " | |
| }; | |
| fprintf(stderr,"%s",msg[op]); |
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 "Pilas.h" | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| PILA crearPila() { | |
| PILA tmp = (PILA)malloc(sizeof(pila)); | |
| if (tmp == NULL) { | |
| manejaError(0); | |
| exit(-1); |