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 * matiere3djv(){
- int choix;
- char * matiere;
- do
- {
- printf("\n Quelle est la matiere de la note à ajouter: \n");
- printf("\n 1-/ TreeJS");
- printf("\n 2-/ Anglais professionnel");
- printf("\n 3-/ Maths Physique");
- printf("\n 4-/ HTML CSS");
- printf("\n 5-/ Base de donnee SQL");
- printf("\n 6-/ Langage C Avancé");
- printf("\n 7-/ Moteur 3D");
- 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 TreeJS");
- matiere="TreeJS";
- goto retourner;
- case 2: printf("\n Anglais professionnel");
- matiere= "Anglais professionnel";
- goto retourner;
- case 3: printf("\n Maths Physique");
- matiere= "Maths Physique";
- 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 Moteur 3D");
- matiere= "Moteur 3D";
- 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