All pastes #991341 Raw Edit

Someone

public cpp v1 · immutable
#991341 ·published 2008-04-20 22:30 UTC
rendered paste body
#include "compteEtudiant.h"using namespace std;int main(int argc, char *argv[]){    cout<<"Bonjour"<<endl;    CompteEtudiant unCompte("Birot","Francois", 500);        	int choixFonction;        do    {         choixFonction=menu();         if(choixFonction!=0)         {              executeFonction(choixFonction, unCompte );         }    }while(choixFonction!=0);   /* */	system("PAUSE");    return EXIT_SUCCESS;}int menu(){      int choix;      //  system("CLS");    cout<<"choisissez une action a effectuer parmi la liste suivante -> "<<endl;    cout<<"->1. déposer de l’argent "<<endl;    cout<<"->2. retirer de l’argent "<<endl;    cout<<"->3. consulter son solde "<<endl;    cout<<"->4. consulter ses dernières opérations de sortie d’argent "<<endl;    cout<<"->5. consulter ses dernières opérations d’entrée d’argent "<<endl;    cout<<"->0. QUITER "<<endl;        cin>>choix;   	system("PAUSE");    return choix;    }int executeFonction(int choixFonction, CompteEtudiant & compte){ 	system("CLS");	switch(choixFonction)	{ 	  case 1:	 	 // cree_tache("abc", 5);		  break;	  case 2:	  	   //cree_tache("",0); 		   break;       case 3:		 //printf("erreur dans l'exécution de la fonction \n");	  	 //cree_tache("aslfhazbfclsddqbjidsvc",-15);		 break;                      }//end choix_parametre                                                	}/*cfk<**/