Visualizzazione dei risultati da 1 a 10 su 16

Visualizzazione discussione

  1. #2
    Utente bannato
    Registrato dal
    Oct 2013
    Messaggi
    23
    codice:
    #include <stdio.h>
    #include <stdlib.h>
    #define PRODOTTO 10
    #define VENDITORE 10
    #define VENDITE 20
    typedef struct
    {
        int cod_p;
        char nome[20];
        int prezzo;
    }Prodotto;
    typedef struct
    {
        int cod_v;
        char nome[20];
        char cognome[20];
    }Venditore;
    typedef struct
    {
        int cod_p;
        int cod_v;
        int quantita;
        int anno;
        int mese;
        int giorno;
    }Vendita;
    /*/////////////////////PROTOTIPI FUNZIONI\\\\\\\\\\\\\\\\\\\\\\\\\*/
    void stampa_menu();
    void ordina_vendite(Vendita *vend, int n_v);
    void ordina_vendite_idVend(Vendita *vend, int n_v);
    void stampa_vendite_totali_prodotti(Vendita *vend, int n_v);
    Venditore leggi_venditore(int cod);
    Prodotto leggi_prodotto(int cod);
    Vendita leggi_vendita(int cod_v, int cod_p);
    int aggiungi_venditore(Venditore *vend, int *n_vend);/* return -1 se è gia presente un venditore con lo stesso codive, altrimenti 1*/
    int aggiungi_prodotto(Prodotto* prod, int *n_prod);/* return -1 se è gia presente un prodotto con lo stesso codive, altrimenti 1*/
    int aggiungi_vendita(Venditore *vend, Vendita *ven, Prodotto *prod, int n_vend, int *n_v, int n_prod);
    void stampa_venditori(Venditore* vend, int n_vend);
    void stampa_prodotti(Prodotto* prod, int n_prod);
    void stampa_vendite(Vendita* ven, int n_v);
    int trova_prodotto(Prodotto *prod, int n_prod);
    int trova_venditore(Venditore *vend, int n_vend);
    void ordina_vendite_idProd(Vendita *vend, int n_v);
    void ordina_vendite_idVend(Vendita *vend, int n_v);
    void stampa_vendite_totali_venditori(Vendita *vend, int n_v);
    void stampa_vendite_totali_prodotti(Vendita *vend, int n_v);
    Ultima modifica di MItaly; 12-12-2013 a 17:51 Motivo: tag CODE

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.