diff options
| author | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-10-20 12:31:43 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-10-20 12:31:43 -0500 |
| commit | 4c144833b278188c567198866934e8773be9c8f4 (patch) | |
| tree | 6ee01c357c58c9b9bd30ab621770d33f7d589ea7 /2023-2/E1/mitsuo/p2/fun.hpp | |
| parent | fba9c34c547c99d56b4bf2d83caf5c68a638107f (diff) | |
Add sol for p1, p2 of 2023-2 E1
Also add the topics covered in the exam on topics.txt
Diffstat (limited to '2023-2/E1/mitsuo/p2/fun.hpp')
| -rw-r--r-- | 2023-2/E1/mitsuo/p2/fun.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/2023-2/E1/mitsuo/p2/fun.hpp b/2023-2/E1/mitsuo/p2/fun.hpp index 70f4b3f..c1ea51a 100644 --- a/2023-2/E1/mitsuo/p2/fun.hpp +++ b/2023-2/E1/mitsuo/p2/fun.hpp @@ -3,19 +3,13 @@ #include <iostream> -#define MAX 1000 #define MAXLEN 100 #define INCREMENTO 5 -void cargarProductos(void *&prod, const char *nombArch); -void aumentaEspacios(void**&productos, int &nd, int &cap); -char *leeCad(std::istream &arch, char delim); -void guardaProd(std::istream &arch, void *&prod, char *cod); -void *creaRegProd(std::istream &arch, char *cod); -int cmpProducto(const void *a, const void *b); -void pruebaDeCargaDeProductos(void *prod); -void imprimeLinea(std::ostream &arch,char c); -void imprimeProducto(std::ostream &arch,void *prod); -void imprimeRegistroProducto(std::ostream &arch,void *prod); +void cargarProductos(void *& productos, const char * archivo); +void pruebaDeCargaDeProductos(void * productos); + +int cmp_productos(const void *lhs, const void *rhs); +void increase_size_productos(void **& ps, size_t &size); #endif /* FUN_HPP */
\ No newline at end of file |
