#include #include #include typedef struct { int cis; float castka; } UCET; UCET *ucty; int pocet=0; float suma=0; void zaloz(int c) { int q=0; for(q=0;q=d) { ucty[q].castka-=d; suma-=d; if(s) printf("Vybrano %.2f z uctu %010d.\n\n",d,c); return(1); } else printf("Nedostatek penez.\n\n"); } return(1); } void statistika() { printf("Pocet uctu: %d\n",pocet); printf("Celkem: %10.2f\n\n",suma); } void list() { int q=0; float f=0; printf("Pocet uctu: %d\n",pocet); for(q=0;q