Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <stdio.h>
  4. #include "header.h"
  5.  
  6. char * matiereSI(){
  7.  
  8.  
  9. int choix;
  10. char * matiere;
  11.  
  12. do
  13. {
  14. printf("\n Quelle est la matiere de la note à ajouter: \n");
  15. printf("\n 1-/ Administration et supervision sous Nagios");
  16. printf("\n 2-/ Algorithmique avancée");
  17. printf("\n 3-/ Anglais professionnel");
  18. printf("\n 4-/ Cisco CCNA 1&2");
  19. printf("\n 5-/ Cryptographie, clés et certificats");
  20. printf("\n 6-/ Détection de vulnérabilités");
  21. printf("\n 7-/ E-learning");
  22. printf("\n 8-/ Hardening OS");
  23. printf("\n 9-/ Langage C Avancé");
  24. printf("\n 10-/ Linux administration avancée");
  25. printf("\n 11-/ Planification de projets SI");
  26. printf("\n 12-/ Programme open esgi");
  27. printf("\n 13-/ Projet Annuel");
  28. printf("\n 14-/ Sécurité assembleur");
  29. printf("\n 15-/ Sécurité des réseaux wifi");
  30. printf("\n 16-/ Sortir !");
  31.  
  32. printf("\n");
  33.  
  34. printf("\n Entrer votre choix : ");
  35. scanf("%d", &choix);
  36.  
  37. switch(choix)
  38. {
  39. case 1: printf("\n Administration et supervision sous Nagios");
  40. matiere= "Administration et supervision sous Nagios";
  41. goto retourner;
  42.  
  43. case 2: printf("\n Algorithmique avancee");
  44. matiere="Algorithmique avancee";
  45. goto retourner;
  46.  
  47. case 3: printf("\n Anglais professionnel");
  48. matiere= "Anglais professionnel";
  49. goto retourner;
  50.  
  51. case 4: printf("\n Cisco CCNA 1&2");
  52. matiere= "Cisco CCNA 1&2";
  53. goto retourner;
  54.  
  55. case 5: printf("\n Cryptographie, cles et certificats");
  56. matiere= "Cryptographie, cles et certificats";
  57. goto retourner;
  58.  
  59. case 6: printf("\n Detection de vulnerabilites");
  60. matiere= "Detection de vulnerabilites";
  61. goto retourner;
  62.  
  63. case 7: printf("\n E-learning");
  64. matiere= "E-learning";
  65. goto retourner;
  66.  
  67. case 8: printf("\n Hardening OS");
  68. matiere= "Hardening OS";
  69. goto retourner;
  70.  
  71. case 9: printf("\n Langage C Avance");
  72. matiere= "Langage C Avance";
  73. goto retourner;
  74.  
  75. case 10: printf("\n Linux administration avancee");
  76. matiere= "Linux administration avancee";
  77. goto retourner;
  78.  
  79. case 11: printf("\n Planification de projets SI");
  80. matiere= "Planification de projets SI";
  81. goto retourner;
  82.  
  83. case 12: printf("\n Programme open esgi");
  84. matiere= "Programme open esgi";
  85. goto retourner;
  86.  
  87. case 13: printf("\n Projet Annuel");
  88. matiere= "Projet Annuel";
  89. goto retourner;
  90.  
  91. case 14: printf("\n Sécurite assembleur");
  92. matiere= "Securite assembleur";
  93. goto retourner;
  94.  
  95. case 15: printf("\n Sécurite des réseaux wifi");
  96. matiere= "Securite des réseaux wifi";
  97. goto retourner;
  98.  
  99.  
  100. //case 16: printf("\n Sortir !");
  101. //break; //changer en get out avec Goto;
  102.  
  103. default : printf("\n Erreur Taper un numero valide");
  104. break;
  105. }
  106.  
  107. }while(choix!=0);
  108.  
  109. retourner:
  110. return matiere;
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement