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 * matiereiw(){
- int choix;
- char * matiere;
- do
- {
- printf("\n Quelle est la matiere de la note à ajouter: \n");
- printf("\n 1-/ PHP");
- printf("\n 2-/ Anglais professionnel");
- printf("\n 3-/ Javascript");
- printf("\n 4-/ HTML CSS");
- printf("\n 5-/ Base de donnee SQL");
- printf("\n 6-/ Langage C Avancé");
- printf("\n 7-/ Linux administration avancée");
- printf("\n 8-/ Programme open esgi");
- printf("\n 9-/ Projet Annuel");
- printf("\n 10-/ Sortir !");
- printf("\n");
- printf("\n Entrer votre choix : ");
- scanf("%d", &choix);
- switch(choix)
- {
- case 1: printf("\n PHP");
- matiere="PHP";
- goto retourner;
- case 2: printf("\n Anglais professionnel");
- matiere= "Anglais professionnel";
- goto retourner;
- case 3: printf("\n Javascript");
- matiere= "Javascript";
- goto retourner;
- case 4: printf("\n HTML CSS");
- matiere= "HTML CSS";
- goto retourner;
- case 5: printf("\n Base de donnee SQL");
- matiere= "Base de donnee SQL";
- goto retourner;
- case 6: printf("\n Langage C Avance");
- matiere= "Langage C Avance";
- goto retourner;
- case 7: printf("\n Linux administration avancee");
- matiere= "Linux administration avancee";
- goto retourner;
- case 8: printf("\n Programme open esgi");
- matiere= "Programme open esgi";
- goto retourner;
- case 9: printf("\n Projet Annuel");
- matiere= "Projet Annuel";
- goto retourner;
- 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