forked from kique/mn-curses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
85 lines (77 loc) · 1.64 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* =====================================================================================
*
* Filename: main.c
*
* Description: Programa principal de Metodos Numericos
*
* Version: 0.01
* Created: 09/12/13 23:40:57
* Revision: none
* Compiler: gcc
*
* Author: Enrique Martinez Roldan (emr), enrique.roldan@gmail.com
* Organization: IPN ESIME Zacatenco
*
* =====================================================================================
*/
#include "header.h"
#include "prototipos.h"
/**
* @brief
*
* Esta es la funcion principal donde se ejecuta el menu con las opciones generales
* para llevar a los respectivos sub menus, los cuales se desplegan llamando a sus
* respectivas funciones
*
* @return 0
*/
int main()
{
char opc,rep;
do{
system("clear");
menu();
scanf(" %c",&opc);
switch(toupper(opc))
{
case 'A':
grafica();
break;
case 'B':
menu_raices();
ctrl_menu_raices();
break;
case 'C':
// menu_sel();
ctrl_menu_sel();
break;
case 'D':
regresion_entrada();
break;
case 'E':
entrada_difdivnewton();
break;
case 'F':
break;
case 'G':
menu_integracion();
ctrl_menu_integracion();
break;
case 'H':
break;
case 'Z':
printf("\nAdios!\n\n");
break;
default:
printf("\nOpcion Invalida\n");
}
if(opc != 'z')
{
printf("\n\nDeseas realizar otro calculo?: (s/n)");
scanf(" %c",&rep);
}
//getchar();
}while(rep=='s');
return 0;
}