Skip to content

Commit fe5d867

Browse files
authored
Update GroupC_Practical20(C++).cpp
1 parent ef47d78 commit fe5d867

File tree

1 file changed

+13
-27
lines changed

1 file changed

+13
-27
lines changed

GroupC_Practical20(C++).cpp

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ void cinemax::display()
6868
node* temp;
6969
temp=head;
7070
int count=0;
71-
cout<<"\n------------------------------------
72-
------------------------------------------------\n";
71+
cout<<"\n------------------------------------------------------------------------------------\n";
7372
cout<<" Screen
7473
this way \n";
75-
cout<<"--------------------------------------
76-
----------------------------------------------\n";
74+
cout<<"------------------------------------------------------------------------------------\n";
7775
while(temp->next!=head)
7876
{
7977
if(temp->seat/10==0)
@@ -110,8 +108,7 @@ cout<<"Enter your ID number\n";
110108
cin>>y;
111109
if(x<1||x>70)
112110
{
113-
cout<<"Enter correct seat number to book (1-
114-
70)\n";
111+
cout<<"Enter correct seat number to book (1-70)\n";
115112
goto label;
116113
}
117114
node *temp;
@@ -142,8 +139,7 @@ cout<<"Enter you ID\n";
142139
cin>>y;
143140
if(x<1||x>70)
144141
{
145-
cout<<"Enter correct seat number to cancel
146-
(1-70)\n";
142+
cout<<"Enter correct seat number to cancel (1-70)\n";
147143
goto label1;
148144
}
149145
node *temp;
@@ -166,8 +162,7 @@ cout<<"Seat Cancelled!\n";
166162
}
167163

168164
else
169-
cout<<"Wrong User ID !!! Seat cannot be
170-
cancelled!!!\n";
165+
cout<<"Wrong User ID !!! Seat cannot be cancelled!!!\n";
171166
}
172167
}
173168
void cinemax::avail()
@@ -177,12 +172,9 @@ node* temp;
177172
temp=head;
178173
int count=0;
179174
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";
186178
while(temp->next!=head)
187179
{
188180
{
@@ -223,15 +215,10 @@ int ch;
223215
char c='y';
224216
while(c=='y')
225217
{ obj.display();
226-
cout<<"\n
227-
*********************************************\n";
228-
cout<<" CINEMAX MOVIE THEATRE
229-
\n";
230-
cout<<"
231-
*********************************************\n";
232-
cout<<"\nEnter Choice\n1.Current Seat
233-
Status\n2.Book Seat \n3.Available Seat\n4.Cancel
234-
Seat\n";
218+
cout<<"\n*********************************************\n";
219+
cout<<" CINEMAX MOVIE THEATRE\n";
220+
cout<<"*********************************************\n";
221+
cout<<"\nEnter Choice\n1.Current SeatStatus\n2.Book Seat \n3.Available Seat\n4.CancelSeat\n";
235222
cin>>ch;
236223
switch(ch)
237224
{
@@ -245,8 +232,7 @@ case 4: obj.cancel();
245232
break;
246233
default: cout<<"Wrong choice input\n";
247234
}
248-
cout<<"\nDo you want to perform any other
249-
operation : (y/n)\n";
235+
cout<<"\nDo you want to perform any other operation : (y/n)\n";
250236
cin>>c;
251237
}
252238
return 0;

0 commit comments

Comments
 (0)