Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include "header.h"
- char * matiereSI(){
- int choix;
- char * matiere;
- do
- {
- printf("\n Quelle est la matiere de la note à ajouter: \n");
- printf("\n 1-/ Administration et supervision sous Nagios");
- printf("\n 2-/ Algorithmique avancée");
- printf("\n 3-/ Anglais professionnel");
- printf("\n 4-/ Cisco CCNA 1&2");
- printf("\n 5-/ Cryptographie, clés et certificats");
- printf("\n 6-/ Détection de vulnérabilités");
- printf("\n 7-/ E-learning");
- printf("\n 8-/ Hardening OS");
- printf("\n 9-/ Langage C Avancé");
- printf("\n 10-/ Linux administration avancée");
- printf("\n 11-/ Planification de projets SI");
- printf("\n 12-/ Programme open esgi");
- printf("\n 13-/ Projet Annuel");
- printf("\n 14-/ Sécurité assembleur");
- printf("\n 15-/ Sécurité des réseaux wifi");
- printf("\n 16-/ Sortir !");
- printf("\n");
- printf("\n Entrer votre choix : ");
- scanf("%d", &choix);
- switch(choix)
- {
- case 1: printf("\n Administration et supervision sous Nagios");
- matiere= "Administration et supervision sous Nagios";
- goto retourner;
- case 2: printf("\n Algorithmique avancee");
- matiere="Algorithmique avancee";
- goto retourner;
- case 3: printf("\n Anglais professionnel");
- matiere= "Anglais professionnel";
- goto retourner;
- case 4: printf("\n Cisco CCNA 1&2");
- matiere= "Cisco CCNA 1&2";
- goto retourner;
- case 5: printf("\n Cryptographie, cles et certificats");
- matiere= "Cryptographie, cles et certificats";
- goto retourner;
- case 6: printf("\n Detection de vulnerabilites");
- matiere= "Detection de vulnerabilites";
- goto retourner;
- case 7: printf("\n E-learning");
- matiere= "E-learning";
- goto retourner;
- case 8: printf("\n Hardening OS");
- matiere= "Hardening OS";
- goto retourner;
- case 9: printf("\n Langage C Avance");
- matiere= "Langage C Avance";
- goto retourner;
- case 10: printf("\n Linux administration avancee");
- matiere= "Linux administration avancee";
- goto retourner;
- case 11: printf("\n Planification de projets SI");
- matiere= "Planification de projets SI";
- goto retourner;
- case 12: printf("\n Programme open esgi");
- matiere= "Programme open esgi";
- goto retourner;
- case 13: printf("\n Projet Annuel");
- matiere= "Projet Annuel";
- goto retourner;
- case 14: printf("\n Sécurite assembleur");
- matiere= "Securite assembleur";
- goto retourner;
- case 15: printf("\n Sécurite des réseaux wifi");
- matiere= "Securite des réseaux wifi";
- goto retourner;
- //case 16: printf("\n Sortir !");
- //break; //changer en get out avec Goto;
- default : printf("\n Erreur Taper un numero valide");
- break;
- }
- }while(choix!=0);
- retourner:
- return matiere;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement