diff --git a/build/globals.o b/build/globals.o index 98323c6..4a0c38a 100644 Binary files a/build/globals.o and b/build/globals.o differ diff --git a/build/logic.o b/build/logic.o index d3f0250..0c36feb 100644 Binary files a/build/logic.o and b/build/logic.o differ diff --git a/include/logic.h b/include/logic.h index 27a283a..0e959a3 100644 --- a/include/logic.h +++ b/include/logic.h @@ -6,10 +6,11 @@ #include #include -// TODO: QUI CI VA LA STRUCT DATI +struct product { + char +}; int getCount(); -void changeFile(); int exists(const char *fname); -#endif \ No newline at end of file +#endif diff --git a/productManager b/productManager index 9081935..1702200 100755 Binary files a/productManager and b/productManager differ diff --git a/src/globals.c b/src/globals.c index 049e0a6..5aa5bde 100644 --- a/src/globals.c +++ b/src/globals.c @@ -1,4 +1,4 @@ #include "../include/globals.h" char productPricesFileLocation[64]="./productPricesSettings.fpm"; -char countFileLocation[64]="./count.fpm" +char countFileLocation[64]="./count.fpm"; diff --git a/src/logic.c b/src/logic.c index 9aac599..888e26f 100644 --- a/src/logic.c +++ b/src/logic.c @@ -18,10 +18,6 @@ int exists(const char *fname) { return 0; } -void changeFile(){ - -} - int getCount(){ return 0; diff --git a/src/main.c b/src/main.c index ca62a04..0f87a0d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,14 +1,17 @@ /* -* [Guida NCURSES](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html) -* Product Manager +* +* ### Product Manager +* Questo codice รจ molto probabilmente NON sicuro. * -* Controllare se file esiste -* Listare prodotti con prezzo da file -* Aggiungere prodotto con prezzo a file -* Listare copie vendute di prodotto da file -* Aggiungere copie venduto di prodotto a file -* Cambiare nome dei file con interagisce -* Calcolare la somma delle entrate dati i file +* [Guida NCURSES](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html) +* +* TODO: Controllare se file esiste +* TODO: Listare prodotti con prezzo da file +* TODO: Aggiungere prodotto con prezzo a file +* TODO: Listare copie vendute di prodotto da file +* TODO: Aggiungere copie venduto di prodotto a file +* TODO: Cambiare nome dei file con interagisce +* TODO: Calcolare la somma delle entrate dati i file */ #include diff --git a/tests/test.c b/tests/test.c index e046322..c9cc818 100644 --- a/tests/test.c +++ b/tests/test.c @@ -3,5 +3,6 @@ int main(){ printf("%s", productPricesFileLocation); + return 0; }