Devoir libre 2 DEVOIR LIBRE LANGUAGE C Siham ayad CNE A année universitaire Pour étudiants on a void initialiser char tableau Ctableau ' ' pour initialiser le tableau void ajouter etudiants char tableau char nom char prenom char ?liere char niveau int i f
DEVOIR LIBRE LANGUAGE C Siham ayad CNE A année universitaire Pour étudiants on a void initialiser char tableau Ctableau ' ' pour initialiser le tableau void ajouter etudiants char tableau char nom char prenom char ?liere char niveau int i for i i i if tableau i ' ' break strcpy tableau i nom strcpy tableau i prenom strcpy tableau i ?liere strcpy tableau i niveau tableau i ' ' void a ?chage char tableau int i j k for i i i if tableau i ' ' break printf s s s s n nom Prenom Filiere Niveau for k k printf s s s s n tableau k tableau k tableau k tableau k k C void a ?chageparniveau char tableau char niveau int i j k for i i i if tableau i ' ' break printf s s s s n nom Prenom Filiere Niveau for k kpar ?liere char tableau char ?liere int i j k for i i i if tableau i ' ' break Cprintf s s s s n nom Prenom Filiere Niveau for k k Cchar temp for i i i if tableau i ' ' break for j j Cstrcpy tableau j temp j void chercherparnom char tableau char nom int i j k for i i i if tableau i ' ' break printf s s s s n nom Prenom Filiere Niveau for k k C if tableau i ' ' break for k k Cstrcpy tableau j tableau j strcpy tableau j tableau j k j k if p tableau j ' ' void enregestrer char tableau int i j k FILE P NULL P fopen liste etudiants txt a for i i i if tableau i ' ' break fprintf P s s s s n nom Prenom Filiere Niveau for k k Cfclose P int main int i char tab nom prenom ?liere niveau initialiser tab while i printf - Ajouter un etudiant n printf - A ?cher tous les etudiants n printf - A ?cher les etudiants par niveau n printf - A ?cher les etudiants par ?liere n printf - Trier tous les etudiants par nom n printf - Chercher un etudiant par nom n printf - Corriger les données d un etudiant n printf - Supprimer un etudiant n printf - Enregistrer toutes les donnees des etudiants dans un ?chier n printf - Quitter n scanf d i switch i case printf Saisir les donnees NOM PRENOM FILIERE NIVEAU n scanf s s s s nom prenom ?liere niveau ajouter etudiants tab nom prenom ?liere niveau break C case a ?chage tab break case printf saisir le niveau scanf s niveau a ?chageparniveau tab niveau break case printf saisir le ?liere scanf s ?liere a ?chagepar ?liere tab ?liere break case trier tab break case printf entre le nom d'etudiant scanf s nom chercherparnom tab nom Cbreak case printf entre le nom et le prenom d'etudiant scanf s s nom prenom corriger
Documents similaires
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/117023869427kvsjeylqa8orqbc07sg23ee3y9iet9mcheodtqgtu9nsip3ibl8tjhldrir3rzhoyqptt3zeom01yg1f5lag5zexoqvs1wpeyak.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702071043vm9l9qbgwci4guraekicnx5lmyetzevsajxu9frm8giubfwkccppogkbkh6ixghb3scz8islnj4r4htjrdcdrdxbtu1e5ayyjlr2.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702594514vg62vv68lggbchvqx1u4swe24ya3qx6m7mygl6o7fwboafjjigu0nxiquz2stcyc1ezjlg65oon6ddeywhlgrx45vvqypbavyerg.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702430890uwltkyoxl7xy7jud83nhi8vcyfmtnyd5fuvpoxz4wpmzri6c9lvsatlhncmgijwhqbq18c1t4lfsh3oqwg35r9jm7s85dj6kgwjx.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702418360kw6wlx8dmkvahpuahbyiqhtkjw0se6n3u1pdvcjcjuurxpzhktgooq9p6mpi6ykvv2fgzmxg4kdf2olax2zkkwxrh8ibcyptntmz.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702400887odpwz4fc1avs7j3r0qbc1epk4c8cqs5wa9sqr9d3ljtcyvqruqnfvsryfilkvpm6kmjzabmdhjklz83gl26mmj94smb5kpj9injn.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/zOnI5W1hDKV1X8T5h1L1XsKo4K7n373DugWf97s1W0BfQVuYdA7XQ8GM4i4wqrVwYu66QoxwlK1Tq6GBTSF0n7K3.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702421288bvn1dixxfqnwdphtd6k8vgtt6qicgzexwzkojmbb1ev8mrcnq4ftq2u9wrzzrqihnaghx1ryfrfdjlibrkhbyrvrcog81m7kmhwy.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702402312qnnvmwjcthqukk8rovr7xbv4p4wykduik6hdj3hemjts0pacsposdktoewoil2avkmdkxp8f0f9o6p9o94hoirzbgqoqri4nlods.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702498419vaq0wbb9ugcvhupybhjfcdbonzwipnna2jxg9pog6gsxw1xpyjpxqm5z6aqkqvo6zvezc3lklidgo0ycdktddhqoq56sxtsalu5v.png)
-
28
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Mar 06, 2022
- Catégorie Industry / Industr...
- Langue French
- Taille du fichier 30.1kB