-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.cpp
62 lines (52 loc) · 1.79 KB
/
admin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <iostream>
#include <string.h>
#include <fstream>
#include "header\entreprise.hpp"
#include "header\admin.hpp"
#include "header\menu.hpp"
#include "header\stagiaire.hpp"
using namespace std;
void admin(){
system("cls");
cout<<"\t\t\t ADMINISTRATEUR "<<endl;
cout<<"\t\t\t ######## ###### ###### ######## ###### ####### ## ##"<<endl;
cout<<"\t\t\t ## ## ## ## ## ## ## ### ##"<<endl;
cout<<"\t\t\t ## ### ###### ##### ## ## ## ## #### ##"<<endl;
cout<<"\t\t\t ## ## ## ## ## ## ## ## ## ####"<<endl;
cout<<"\t\t\t ######## ###### ##### ## ###### ####### ## ## "<<endl;
cout<<"\t\t\t\tDES STAGES DANS DES ENTREPRISES"<<endl<<endl;
int a;
do
{
system("color b");
cout<<"\t############################################"<<endl;
cout<<"\t##\t\t 1. Entreprise ##"<<endl;
cout<<"\t##\t\t 2. Stagiaire ##"<<endl;
cout<<"\t##\t\t 0. Quitter ##"<<endl;
cout<<"\t############################################"<<endl;
cout<<"\tOption --> ";
while (!(cin>>a))
{
cin.clear();
cin.ignore(255,'\n');
cout<<"\tErreur !!"<<endl;
cout<<"\tOption --> ";
}
switch(a)
{
case 1:
system("cls");
menu_entreprise();
break;
case 2:
system("cls");
menu_stagiaire();
break;
case 0:
break;
default:
system("cls");system("color 4");
cout<<"Error de saisie";
}
} while (a<0 || a>2);
}