bonjour,

svp c'est urgent je compile un projet en c++, voici ma classe :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
 
#include <cstdlib>
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
 
using namespace std;
int Inc1=0;
 
class Reservation
{
private :
    string p[5][50];
	public : 
 
                 void MenuReservation();
	    void AjouterR();
	    void AfficherR();
	    void ModifierR();
	    void SupprimerR();  
                 void MenuPrincipalR(); 
};
void Reservation::MenuResrevation()
{
 
     int OptionReservation;
	 do
	 {
	 clrscr();
	 gotoxy(28,1);
     cout<<"GESTION DES RESERVATIONS"<<endl;
	 gotoxy(28,2);
     cout<<"------------------------\n\n"<<endl;
	 cout<<"-------------------------------------------------------"<<endl;
	 cout<<"¦                                                      ¦"<<endl;
	 cout<<"¦                                                      ¦"<<endl;
     cout<<"¦                                                      ¦"<<endl;
	 cout<<"¦                                                      ¦"<<endl;
	 cout<<"¦                                                      ¦"<<endl;
	 cout<<"-------------------------------------------------------"<<endl;
     cout<<"[1]-Ajouter"<<endl;
     cout<<"[2]-Modifier"<<endl;
     cout<<"[3]-Supprimer"<<endl;
     cout<<"[4]-Liste des Reservations"<<endl;
     cout<<"[5]-Menu Principal\n"<<endl;
     cout<<"CHOISIR L'OPTION : ";
     cin>>OptionReservation;
 
        switch (OptionReservation)
        {
               case 1 : AjouterR();
               break;
               case 2 : ModifierR();
               break;
               case 3 : SupprimerR();
               break;
               case 4 : AfficherR();
               break;
               case 5 : MenuPrincipalR();
               break;
               default: break;
        }
	 }
	 while(OptionReservation!=5);
}
void Reservation::AjouterR()
{
	 TextColor(2);
	 cout<<"\n";
     cout<<"Ref Client : \n";
     cout<<"Reservation: \n";
     cout<<"Date Debut : \n";
     cout<<"date Fin   : \n";
	 cout<<"Montant    : \n";
     TextColor(6);
	 for(int i=0;i<=4;i++)
	 {
	 gotoxy(13,13+i);
	 cin>>p[i][Inc1];
	 }
	 cout<<"\n";
	 cout<<"Operation Effectuee !"<<endl;
	 Inc1++;
}
void Reservation::ModifierR()
{
	     string Code;
         char Champ;
	     gotoxy(8,13);
		 cout<<"Code";
         gotoxy(18,13);
		 cout<<"Reservation";
		 gotoxy(28,13);
		 cout<<"Date Debut";
		 gotoxy(38,13);
		 cout<<"Date Fin"<<endl;
		 gotoxy(48,13);
         cout<<"Montant"<<endl;
 
		 for(int k=0;k<=Inc1-1;k++)
		 {
	     for(int i=0;i<=4;i++)
		 {
			 gotoxy(8+i*20,14+k);
			 cout<<p[i][k];
		     cout<<" ";
		 }
		 }
		 cout<<"\n\n";
		 cout<<"ENTRER CODE CLIENT POUR MODIFIER LA RESERVATION: ";
         cin>>Code;
		 for(int l=0;l<=Inc1-1;l++)
		 {
			if (p[0][l]==Code)
			{
				cout<<"Champs a modifier : "<<endl;
			    cout<<"(R : Reservation) * (DD : Date Debut) * (DF : Date Fin ) : ";
				cin>>Champ;
				if (Champ=='R')
				{
					cout<<"Reservation : ";
				    cin>>p[1][l];
				}
                if (Champ=='DD')
				{
					cout<<"Date Debut : ";
					cin>>p[2][l];
				}
                if (Champ=='DT')
				{
					cout<<"Date Fin : ";
					cin>>p[3][l];
				}
			}
		 }
 
 
}
void Reservation::SupprimerR()
{
	     string Code;
	     gotoxy(8,13);
		 cout<<"Code";
         gotoxy(18,13);
		 cout<<"Reservation";
		 gotoxy(28,13);
		 cout<<"Date Debut";
		 gotoxy(38,13);
		 cout<<"Date Fin"<<endl;
		 gotoxy(48,13);
		 cout<<"Montant"<<endl;
 
		 for(int k=0;k<=Inc1-1;k++)
		 {
	     for(int i=0;i<=4;i++)
		 {
			 gotoxy(8+i*20,14+k);
			 cout<<p[i][k];
		     cout<<" ";
		 }
		 }
		 cout<<"\n";
		 cout<<"ENTRER CODE CLIENT POUR SUPPRIMER LA RESERVATION : ";
         cin>>Code;
		 for(int l=0;l<=Inc1-1;l++)
		 {
			if (p[0][l]==Code)
			{
				for(int n=0;n<=4;n++)
					p[n][l]="";
			}
		 }
}
void Reservation::AfficherR()
{
 
	     char Imp;
 
	     gotoxy(8,13);
		 cout<<"Code";
                           gotoxy(18,13);
		 cout<<"Reservation";
		 gotoxy(28,13);
		 cout<<"Date Debut";
		 gotoxy(38,13);
		 cout<<"Date Fin";
		 gotoxy(48,13);
		 cout<<"Montant"<<endl;
 
		 for(int k=0;k<=Inc1-1;k++)
		 {
	     for(int i=0;i<=4;i++)
		 {
			 gotoxy(8+i*20,14+k);
			 cout<<p[i][k];
		     cout<<" ";
		 }
		 }
		 cout<<"\n\n";
         cout<<"VOULEZ VOUS IMPRIMER (O/N) ? : ";
         cin>>Imp;
         //if (Imp=='o')          
}
 
void Reservation::MenuPrincipalR()
{
    system("CLS");
    cout<<"GESTION HOTEL"<<endl;
    cout<<"-------------\n"<<endl;
    cout<<"[1]-GESTION CLIENTS"<<endl;
    cout<<"[2]-GESTION RESERVATION"<<endl;
    cout<<"[3]-QUITTER\n"<<endl;
    cout<<"CHOISIR L'OPTION : "; 
}
voici l'erreur signalé :
Compiling...
MyHotel.cpp
c:\hotel_adil\myhotel\myreservation.h(23) : error C2039: 'MenuResrevation' : is not a member of 'Reservation'
c:\hotel_adil\myhotel\myreservation.h(11) : see declaration of 'Reservation'
c:\hotel_adil\myhotel\myreservation.h(51) : error C2065: 'AjouterR' : undeclared identifier
c:\hotel_adil\myhotel\myreservation.h(53) : error C2065: 'ModifierR' : undeclared identifier
c:\hotel_adil\myhotel\myreservation.h(55) : error C2065: 'SupprimerR' : undeclared identifier
c:\hotel_adil\myhotel\myreservation.h(57) : error C2065: 'AfficherR' : undeclared identifier
c:\hotel_adil\myhotel\myreservation.h(59) : error C2065: 'MenuPrincipalR' : undeclared identifier
Error executing cl.exe.

MyHotel.obj - 6 error(s), 0 warning(s)
---------------------------------
je vois pas ou est l'erreur ??