From 4c144833b278188c567198866934e8773be9c8f4 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 20 Oct 2023 12:31:43 -0500 Subject: Add sol for p1, p2 of 2023-2 E1 Also add the topics covered in the exam on topics.txt --- 2023-2/E1/mitsuo/p2/fun.hpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to '2023-2/E1/mitsuo/p2/fun.hpp') 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 -#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 -- cgit v1.2.3