1 / 2

start

start. count=0. “Inserisci 1 per inserire in archivio Inserisci 2 l’ordinamento dell’archivio Inserisci 3 per la ricerca in archivio Inserisci 4 per la modifica del numero di dipendenti e del legale rappresentante Inserisci 5 per visualizzare l'archivio Inserisci 0 per uscire “.

lottie
Télécharger la présentation

start

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. start count=0 “Inserisci 1 per inserire in archivio Inserisci 2 l’ordinamento dell’archivio Inserisci 3 per la ricerca in archivio Inserisci 4 per la modifica del numero di dipendenti e del legale rappresentante Inserisci 5 per visualizzare l'archivio Inserisci 0 per uscire “ scelta si scelta==1 no scelta==2 no si si count>=1000 no si no scelta==3 ordinaArchivio(count) “Archivio Pieno!” “Inserisci PIVA, Ragione Sociale, CF e numero dipendenti nuovo cliente” no si Inserisci PIVA, da cercare scelta==4 “Inserisci PIVA da modificare” si scelta==5 no partita g=0 nuovo.PIVA,nuovo.ragsoc nuovo.CF, nuovo.dip scelta!=0 si rif=ricerca(partita, count) partita Archivio[g] si “Scelta Non valida” no rif<count modifica(partita, count) inserisciCliente(nuovo, count) g++ no count++ “Il cliente cercato è :” Archivio[rif] si g<count no si scelta!=0 end

  2. Start ordinaArchivio(riemp) Start InserisciCliente(info, pos) i =0 k = i Archivio[pos]=info j = i+1 strcmp(Arhivio[k].ragsoc, Arhivio[j].ragsoc) >= 0 End InserisciCliente(info, pos) si k = j Start ricerca(key, riemp) no Start ricerca(key, riemp) j++ i=0 i=0 si j<riemp strcmp(Arhivio[i].PIVA,key) == 0 f=0 si no si k != i strcmp(Arhivio[i].PIVA,key) == 0 Archivio[i] Archivio[k] “Inserisci nuovo CF” no si no nuovocf i++ f=1 no si i<riemp-1 “Inserisci nuovo numero dipendenti” no i++ nuovidip End ordinaArchivio(riemp) Archivio[i].dip=nuovidip si i<riemp && f==0 no strcpy(Archivio[i].CF,nuovocf) return i i++ End ricerca(key, riemp) i<riemp si no End ricerca(key, riemp)

More Related