Skip to content

Commit f4843f2

Browse files
committed
update changes and bug fixes
1 parent 166e843 commit f4843f2

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/admin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ void Admin::deleteBus()
289289
ticket.close();
290290
remove("buses.dat");
291291
rename("temp.dat", "buses.dat");
292-
}
292+
}
293+

src/customer.cpp

2 Bytes
Binary file not shown.

src/ticket.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
#include<iostream>
1+
#include <iostream>
22

33
#include "ticket.h"
44

55
using namespace std;
66

77
void Ticket::generateTicket(char cname[], Admin ab)
8-
{
9-
strcpy(name,cname);
10-
a = ab;
11-
}
8+
{
9+
strcpy(name, cname);
10+
a = ab;
11+
}
1212

1313
void Ticket::displayTicket()
14-
{
15-
cout<<"\t\t\t\t\t\t\t\t\t\t-------------------------------------------------\n";
16-
cout <<"\t\t\t\t\t\t\t\t\t\tName: " << name;
17-
a.showTicket();
18-
19-
}
14+
{
15+
cout << "\t\t\t\t\t\t\t\t\t\t-------------------------------------------------\n";
16+
cout << "\t\t\t\t\t\t\t\t\t\tName: " << name;
17+
a.showTicket();
18+
}

0 commit comments

Comments
 (0)