Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "VenturaLibrary.h"
- int main(int argc, char **argv)
- {
- char instruccion[20];
- int tiempo = 0;
- char opcion = '0';
- Ins *head = NULL;
- //aquí pongan la llamada a display para que se vean las instrucciones
- do {
- scanf("%c",&opcion);
- if(opcion == 'q'){
- printf("Have a nice day");
- break;
- }
- switch(opcion)
- {
- case '1':
- printf("Capturar nombre de la instruccion:"); scanf("%s", instruccion);
- printf("Capturar tiempo de la instruccion:"); scanf("%d", &tiempo);
- head = anadirInstruccion(head,instruccion,tiempo);break;
- case '2': recorrer(head);break;
- case '3': head = mandarInstrucciones(head);
- }
- }while (1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement