@@ -68,12 +68,10 @@ void cinemax::display()
68
68
node* temp;
69
69
temp=head;
70
70
int count=0 ;
71
- cout<<" \n ------------------------------------
72
- ------------------------------------------------\n " ;
71
+ cout<<" \n ------------------------------------------------------------------------------------\n " ;
73
72
cout<<" Screen
74
73
this way \n " ;
75
- cout<<" --------------------------------------
76
- ----------------------------------------------\n " ;
74
+ cout<<" ------------------------------------------------------------------------------------\n " ;
77
75
while (temp->next !=head)
78
76
{
79
77
if (temp->seat /10 ==0 )
@@ -110,8 +108,7 @@ cout<<"Enter your ID number\n";
110
108
cin>>y;
111
109
if (x<1 ||x>70 )
112
110
{
113
- cout<<" Enter correct seat number to book (1-
114
- 70)\n " ;
111
+ cout<<" Enter correct seat number to book (1-70)\n " ;
115
112
goto label;
116
113
}
117
114
node *temp;
@@ -142,8 +139,7 @@ cout<<"Enter you ID\n";
142
139
cin>>y;
143
140
if (x<1 ||x>70 )
144
141
{
145
- cout<<" Enter correct seat number to cancel
146
- (1-70)\n " ;
142
+ cout<<" Enter correct seat number to cancel (1-70)\n " ;
147
143
goto label1;
148
144
}
149
145
node *temp;
@@ -166,8 +162,7 @@ cout<<"Seat Cancelled!\n";
166
162
}
167
163
168
164
else
169
- cout<<" Wrong User ID !!! Seat cannot be
170
- cancelled!!!\n " ;
165
+ cout<<" Wrong User ID !!! Seat cannot be cancelled!!!\n " ;
171
166
}
172
167
}
173
168
void cinemax::avail ()
@@ -177,12 +172,9 @@ node* temp;
177
172
temp=head;
178
173
int count=0 ;
179
174
cout<<" \n\n\n\n " ;
180
- cout<<" \n -------------------------------------
181
- -----------------------------------------------\n " ;
182
- cout<<" Screen
183
- this way \n " ;
184
- cout<<" --------------------------------------
185
- ----------------------------------------------\n " ;
175
+ cout<<" \n ------------------------------------------------------------------------------------\n " ;
176
+ cout<<" Screen this way \n " ;
177
+ cout<<" ------------------------------------------------------------------------------------\n " ;
186
178
while (temp->next !=head)
187
179
{
188
180
{
@@ -223,15 +215,10 @@ int ch;
223
215
char c=' y' ;
224
216
while (c==' y' )
225
217
{ obj.display ();
226
- cout<<" \n
227
- *********************************************\n " ;
228
- cout<<" CINEMAX MOVIE THEATRE
229
- \n " ;
230
- cout<<"
231
- *********************************************\n " ;
232
- cout<<" \n Enter Choice\n 1.Current Seat
233
- Status\n 2.Book Seat \n 3.Available Seat\n 4.Cancel
234
- Seat\n " ;
218
+ cout<<" \n *********************************************\n " ;
219
+ cout<<" CINEMAX MOVIE THEATRE\n " ;
220
+ cout<<" *********************************************\n " ;
221
+ cout<<" \n Enter Choice\n 1.Current SeatStatus\n 2.Book Seat \n 3.Available Seat\n 4.CancelSeat\n " ;
235
222
cin>>ch;
236
223
switch (ch)
237
224
{
@@ -245,8 +232,7 @@ case 4: obj.cancel();
245
232
break ;
246
233
default : cout<<" Wrong choice input\n " ;
247
234
}
248
- cout<<" \n Do you want to perform any other
249
- operation : (y/n)\n " ;
235
+ cout<<" \n Do you want to perform any other operation : (y/n)\n " ;
250
236
cin>>c;
251
237
}
252
238
return 0 ;
0 commit comments