forked from CesarAng28/DataShell
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDataShell.h
More file actions
96 lines (77 loc) · 1.72 KB
/
DataShell.h
File metadata and controls
96 lines (77 loc) · 1.72 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
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
86
87
88
89
90
91
92
93
94
95
96
//
// DataShell.h
//
//
//
#ifndef DataShell_h
#define DataShell_h
/*
* System headers required by the following declarations
* (the implementation will import its specific dependencies):
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Application specific headers required by the following declarations
* (the implementation will import its specific dependencies):
*/
/* Constants declarations. */
/* Set EXTERN macro: */
#ifndef DataShell_IMPORT
#define EXTERN
#else
#define EXTERN extern
#endif
/* Types declarations. */
//Estructura de nuestras peliculas.
typedef struct demovie{
char nombre[30];
double accion;
double comedia;
double romance;
double terror;
double ficcion;
double drama;
double historia;
double documental;
double arte;
double animada;
char clasf[5];
}param;
/* Global variables declarations. */
/* Function prototypes. */
/*
*
* La funcion DataShell_leer_arrayofstruct lee los datos de un file para guardarlos en un arreglo de estructuras (estatico)
*
* @params
* nombre (char []):
* nombre del archivo a leer
* array (param []):
* arreglo de datos
* @returns
* int (cantidad de datos leido)
*/
EXTERN int DataShell_leer_arrayofstruct(char nombre[], param array[]);
/*
*
* La funcion DataShell_leer_matriz lee la matriz de calificaiones de las peliculas
*
* @params
*
* nombre (char [])
* nombre del archivo.
* matriz (double *[])
* matriz de enteros de calificacion
* fil (int)
* Numero de filas de nuestra matriz
* col (int)
* Numero de columnas de nuestra matriz
* @returns
* void.
*/
EXTERN void DataShell_leer_matriz(char nombre[], double matriz[5][30], int fil, int col);
#undef DataShell_IMPORT
#undef EXTERN
#endif /* files_h */