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 * matiereiabd(){
- int choix;
- char * matiere;
- do
- {
- printf("\n Quelle est la matiere de la note à ajouter: \n");
- printf("\n 1-/ Algorithmique avancée");
- printf("\n 2-/ Anglais professionnel");
- printf("\n 3-/ Intelligence Artificielle");
- printf("\n 4-/ Programation C++");
- 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 Algorithmique avancee");
- matiere="Algorithmique avancee";
- goto retourner;
- case 2: printf("\n Anglais professionnel");
- matiere= "Anglais professionnel";
- goto retourner;
- case 3: printf("\n Intelligence Artificielle");
- matiere= "Intelligence Artificielle";
- goto retourner;
- case 4: printf("\n Programation C++");
- matiere= "Programation C++";
- 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