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 * matieremsci(){
- int choix;
- char * matiere;
- do
- {
- printf("\n Quelle est la matiere de la note à ajouter: \n");
- printf("\n 1-/ EXCEL");
- printf("\n 2-/ Anglais professionnel");
- printf("\n 3-/ Management");
- printf("\n 4-/ HTML CSS");
- printf("\n 5-/ Base de donnee SQL");
- printf("\n 6-/ Reseau");
- printf("\n 7-/ Plannification Projet");
- 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 EXCEL");
- matiere="EXCEL";
- goto retourner;
- case 2: printf("\n Anglais professionnel");
- matiere= "Anglais professionnel";
- goto retourner;
- case 3: printf("\n Management");
- matiere= "Management";
- 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 Reseau");
- matiere= "Reseau";
- goto retourner;
- case 7: printf("\n Plannification Projet");
- matiere= "Plannification Projet";
- 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