14-10-25
This commit is contained in:
1 parent
8fa9e760a4
commit
2f967a0fd8
8 files changed
+17
-16
No files matched your search
Binary file not shown.
Binary file not shown.
+3
-2
@@ -6,10 +6,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
|
|
||||||
// TODO: QUI CI VA LA STRUCT DATI
|
struct product {
|
||||||
|
char
|
||||||
|
};
|
||||||
|
|
||||||
int getCount();
|
int getCount();
|
||||||
void changeFile();
|
|
||||||
int exists(const char *fname);
|
int exists(const char *fname);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Binary file not shown.
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "../include/globals.h"
|
#include "../include/globals.h"
|
||||||
|
|
||||||
char productPricesFileLocation[64]="./productPricesSettings.fpm";
|
char productPricesFileLocation[64]="./productPricesSettings.fpm";
|
||||||
char countFileLocation[64]="./count.fpm"
|
char countFileLocation[64]="./count.fpm";
|
||||||
@@ -18,10 +18,6 @@ int exists(const char *fname) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void changeFile(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int getCount(){
|
int getCount(){
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
+12
-9
@@ -1,14 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [Guida NCURSES](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html)
|
|
||||||
* Product Manager
|
|
||||||
*
|
*
|
||||||
* Controllare se file esiste
|
* ### Product Manager
|
||||||
* Listare prodotti con prezzo da file
|
* Questo codice è molto probabilmente NON sicuro.
|
||||||
* Aggiungere prodotto con prezzo a file
|
*
|
||||||
* Listare copie vendute di prodotto da file
|
* [Guida NCURSES](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html)
|
||||||
* Aggiungere copie venduto di prodotto a file
|
*
|
||||||
* Cambiare nome dei file con interagisce
|
* TODO: Controllare se file esiste
|
||||||
* Calcolare la somma delle entrate dati i file
|
* 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 <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
printf("%s", productPricesFileLocation);
|
printf("%s", productPricesFileLocation);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user