-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
42 lines (30 loc) · 1.08 KB
/
main.c
File metadata and controls
42 lines (30 loc) · 1.08 KB
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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "Latex.h"
#include "Matriz.h"
#include "Interfaz.h" // DESCOMENTAR PARA LA INTERFAZ
#include "AlgoritmoSimplex.h"
#define PRINT(x) (printf("%s", x))
#define LENGHT(x) (sizeof(x) / sizeof((x)[0]))
struct timeval st, et;
// DESCOMENTAR PARA LA INTERFAZ
// main.c 8 (//#include "Interfaz.h")
// main.c 32 (// IniciarInterfaz(argc, argv))
// Matriz.h 6 (//#include "Interfaz.h")
// Matriz.h 293 (Toda la función del ParserVariables())
// AlgoritmoSimplex.h 289 (CreateMatriz());
// gcc -o interface main.c -Wall `pkg-config --cflags --libs gtk+-3.0` -export-dynamic
int main(int argc, char** argv) {
srand(time(NULL)); // Cambiamos la semilla de la función rand() cada vez que iniciamos el programa.
PRINT("Inicio \n\n");
IniciarLatex();
IniciarInterfaz(argc, argv);
AlgoritmoSimplex();
TerminarLatex();
// FinalizarInterfaz();
printf("\n\nFinal \n\n");
return (EXIT_SUCCESS);
}